Buttons

Buttons


A set of properties for the button depends on its type. There are several types of buttons:

  • Basic;
  • Advanced;
  • Initiation (the tab is available for “Expression” and “Workflow” types);

Properties Description
Common
Type Type of the button:

  • Form buttons:
  • Cancel;
  • Delete;
  • Edit;
  • Expression;
  • Print;
  • Save;
  • Workflow;
    • Buttons of the List control:
  • Delete;
  • Expression;
  • New;
  • Workflow;
    • Buttons of the File control:
  • Add;
  • Delete;
  • Download;
  • Expression;
  • Open;
  • Rename.
  • Title Title of the button on the form
    Icon Codename of the Fluent UI icon. A full list of icons is here;
    Action (Expression button)
    Expression JavaScript code to run on click.
    Use this code to get value from input parameters dialog:

    parameters.parameterName
    Action (Save form button)
    After save expression JavaScript code to run after the form is submitted and item is saved
    Action (Delete form button)
    After delete expression JavaScript code to run after the item is deleted
    Action (Print form button)
    Template Template to generate documents from. Please see “Сreate document template” for details.
    Note: the print button can be available in all modes of the form. When document is generated from the item view or edit form, the changed, but not saved values of the fields are not taken into account (only saved field values will be in the generated document). On the New item, the current field field values will be in the generated document.
    Action (Workflow button)
    Workflow Name of the workflow to start
    Start mode
    • Synchronous;
    • Asynchronous.
    Before workflow expression JavaScript code to run before the workflow is started
    After workflow started
    (Synchronous start)
    JavaScript code to run when workflow has been started
    After workflow sent to start
    (Asynchronous start)
    JavaScript to run when the command to start workflow has been sent (but as it’s the asynchronous mode, there is no guarantee that it is already started to the moment)
    Save before run If checked, the form will be submitted and the item will be saved before running the workflow

    Properties Description
    Visible
    • Visible – if set, the button will be always visible on the form;
    • Hidden – if set, the button will be always invisible on the form;
    • Visible by condition – if condition resolves to true, the button will be visible on the form, otherwise it will be hidden
    Enabled
    • Enabled – if set, the button will be always enabled on the form;
    • Disabled – if set, the button will be always disabled on the form;
    • Enable by condition – if condition resolves to true, the button will be enabled on the form, otherwise it will be disabled
    Style
    • Standard – if set, the button will have default style;
    • Primary – if set, the button will have primary style;
    • Primary by condition – if condition resolves to true, the button will have primary style, otherwise it will have standard style.

    This tab is only available for Expression and Workflow buttons.

    Properties Description
    Dialog
    Title Title of the dialog
    Parameters
    Parameter Internal name of the input parameter
    Note: for Workflow button the name must match to existing workflow parameter name
    Label Label for the field in dialog
    Type Available types:

    • Text;
    • Note;
    • User;
    • Date;
    • DateTime.

    Note: for Workflow button the type must match to existing workflow parameter type

    Default value JavaScript expression for parameter default value
    Display on dialog If checked, the parameter will be shown in dialog
    Required If checked, the parameter will be required in dialog

    Contents