How to add a button to a form

You can add a button to a form to perform an action. Clicking a button on a form will launch the manual script releated to that button. For example, sending or receiving data.

 

Note! The button can only be added to the object card in the Objects section.

 

To add a button:

  1. Go to Administration - Objects and select the object card.
  2. Open the Fields tab on the sidepanel and select New Field.
  3. Drag the field onto the object card.
  4. In the Data Format, select Button.
  5. Specify the settings for the button in the sidebar:
    • Field name - enter a name, which will be written on the button
    • Color - select the color of the button
    • Script - select a script that will be executed when the button is clicked
    • Availability Conditions - select the conditions under which the button will be available on the form
    • Hint - enter a hint that will appear when you hover over the button.
  6. Click the Apply button.
  7. Save your changes.

How to specify availability conditions:

  1. Select Availability Conditions in the sidebar.
  2. A window for setting conditions will appear. To add a condition, click Add condition and select a field from the list on which the button availability will depend.
  3. In the Value column, specify the values ​​at which the button will be available.
  4. You can add several conditions - the button will be available when all of them are done. Click the Save button to save the condition.

The condition is removed if:

  • The reference or object class that is used in the condition has been removed
  • The field that is used as a condition has been removed
  • The selected field is used in the new block

insert_button_en.gif

The button will be added to the form.

2021-11-23_104712.jpg