Tips and information on designing dialogs in ERP5 and prefixing fields correctly.
Table of Contents
Like all form fields, the dialog fields must be prefixed.
Unless it's explicitely desired that the field contains the value of an object property, you must prefix them with "your_". Use the Default/TALES/Override system available on
fields to set their default values.
"my_" prefix must be reserved for fields which default value is taken from context object, even in dialogs.
left, right and center groups are displayed in a special html "div", bottom group is displayed between this "div" and the buttons.
When multiple actions are available for the same dialog family, an additionnal html "select" field is added at the top of the html "div". It redirects automaticaly to the
selected dialog. If this dialog is actually a script designed to call the dialog after doing some initialisation, make sure to redirect properly (see Important variables section
Some variables require special attention when designing a script which calls (as in "calling a python method") a dialog.
There are 3 possible actions which lead the user out of a dialog
When the validation of a dialog field fails, the user must be redirected to the dialog with a translated portal status message.
Remember to use validators for fields instead of checking for errors in the action/update script, whenever possible.