Customize Form - "Cannot move row"

Hi guys,

I’m trying to customize the existing form “Sales Order”, and what I need is just swapping the row order for two fields but it gave me the message “Cannot move row”. Is there any limit in terms of changing the order of the fields?

Any help would be much appreciated.

@Rock_Lee try switching to developer mode.

thanks for helping. I tried adding “developer_mode”: true" to the “site_config.json” and restarting the docker containers, but it still gives the same error message.

It is by Design, you cannot move standard fields in Customize Form,

You can move only custom fields.

To move standard fields, you will have to edit doctype. But then updating and maintaining ERPNext and frappe becomes difficult.

Also set developer_mode: 1, not true.

Please use DocType Layout form to move the fields or hide and to customize the form

2 Likes

Whether doctype layout functionalities is bug free now, have u tried out !

As @mohitchechani mentioned, It is not available by design. If you force it you will run into issues with updating frappe/erpnext in the future.

1 Like

DocType Layout does work, although it has a number of issues and poor documentation.

Does anyone know if there is a way to keep the form script with a DocType Layout? E.g. if I create a new layout for Lead, I loose the “Create” button and “New Address/Contact” buttons. They should be available if I can just figure out a way to re-introduce the Lead script to the Lead Doctype Layout I created.

Any ideas?

1 Like

Hi guys,

Just reviving this. Was there any update to the Doctype Layout?

The field reordering works, however I’d expect the new layout to replace whatever is in the route field or something.

image

Other than that, how would someone be able to access the updated layout? The only way I found was to follow the route named after it. ex: /app/newDoctypeLayout

It also seems to be impossible to add it to the dashboard shortcuts as it only allows either doctypes, reports or page. This would be a possible solution if we’re able to add routes to shortcuts.

image

Thoughts?

yeah now i am having issues to update erpnext cuz i modified the doctypes. What can i do …?

How do we use Layout?

What does the route field do in the new layout?

How can we use the new layout after creating it?

You can do this after activating the development mode and moving to DocType and choosing the sales invoice and editing directly, as you will not be able to do the same thing from the DocType customization interface

Hi:

You can do it with v15 just customizing the form … :wink:

oh cool does version 15 has a stable release verison already?

I think v15 will be released soon (Frappeverse 2023? :wink:)
v15beta branch: GitHub - frappe/frappe at version-15-beta