nlobjForm.addButton(name, label, script) method allows adding custom buttons to a form. How will these buttons be displayed by default on a custom form?
All the buttons on the form are displayed in one row. This row will always be present on top of the form. If the form satisfies one of the following conditions, then the button row will also be displayed at the bottom of the form:
- The field height is greater than 10.
- The form has tabs.
- The form contains a sublist.
Note: Only the visible elements on the form are taken into account.