Buttons

Buttons

A set of properties for the button depends on its type. There are several types of buttons: Expression, Save, Edit, Cancel, Delete, Workflow, New, Download, Open and Rename.

Expression:

  • Title – text on the button for the end-user;
  • Icon – code name of the Fabric UI icon. A full list of icons is here;
  • Expression – JavaScript code to run on click;
  • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible).

Save:

  • Title – text on the button for the end-user;
  • Icon – code name of the Fabric UI icon. A full list of icons is here;
  • After save expression – JavaScript code to run after the form is submitted and item is saved;
  • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible).

Edit:

  • Title – text on the button for the end-user;
  • Icon – code name of the Fabric UI icon. A full list of icons is here;
  • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible).

Cancel:

  • Title – text on the button for the end-user;
  • Icon – code name of the Fabric UI icon. A full list of icons is here.

Delete:

  • Title – text on the button for the end-user;
  • Icon – code name of the Fabric UI icon. A full list of icons is here;
  • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible);
  • After delete expression – JavaScript code to run after the item is deleted.

Workflow:

  • Title – text on the button for the end-user;
  • Icon – code name of the Fabric UI icon. A full list of icons is here;
  • Workflow – name of the workflow to start;
  • Before workflow expression – JavaScript code to run before the workflow is started;
  • Start mode:
  • Synchronous start:

    After workflow started expression – JavaScript code to run when workflow has been started;

  • Asynchronous start:

    After workflow sent to start expression – 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);

    • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible);
    • Save before run – if checked, the form will be submitted and the item will be saved before running the workflow;
    • Parameters expression – default values to pass as workflow parameters at start (doesn’t require input data from the end-user);
    • Parameters dialog title;
    • Dialog parameters – the input fields of the start workflow dialog that map to workflow parameters.

    There may be an up to 1 hour delay in applying workflow parameters settings due to a cache mechanism that minimizes end-user form open time.

    New (for List and File fields):

    • Title – text on the button for the end-user;
    • Icon – code name of the Fabric UI icon. A full list of icons is here;
    • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible).
    • Download (for File fields):

      • Title – text on the button for the end-user;
      • Icon – code name of the Fabric UI icon. A full list of icons is here;
      • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible).
      • Open (for File fields):

        • Title – text on the button for the end-user;
        • Icon – code name of the Fabric UI icon. A full list of icons is here;
        • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible).
        • Rename (for File fields):

          • Title – text on the button for the end-user;
          • Icon – code name of the Fabric UI icon. A full list of icons is here;
          • Show expression – JavaScript expression, if resolved to true the button will be visible on the form to the end-user, otherwise it will be hidden (if no expression specified, the button is visible).

    Contents