[SOLVED] Column width in form designer

That for, you have to apply the client script for that doctype.

Please check it.

frappe.ui.form.on('Test DocType', {
    refresh: function(frm) {
        var $form_layout = frm.fields_dict['section_break_tbtz'].wrapper;
        var $columns = $form_layout.find('.form-column');
        if ($columns.length === 2) {
            $($columns[0]).css({
                'max-width': '70%',
                'flex': '0 0 70%'
            });
            $($columns[1]).css({
                'max-width': '30%',
                'flex': '0 0 30%'
            });
        }
    }
});

Please set your doctype name and section field name in the script your according to.

Output:

3 Likes