Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Label - Use a Button's Label to control the text displayed on the Button itself.  While the acutal text displayed carries not technical relevance, it's often a good idea to make labels contextual for your users.  For example, on an expense for, it might be a good idea to change a Button's Label from Submit to Submit Expenses

    Because multiple buttons can exist on a Form, it can make for a smoother user experience to dynamically show and hide Buttons with different Labels depending on the form state.  For example, you might want the Submit Expenses button to hide, and show an Approve Expenses button when a form goes from the submitter to an approver in an expense approval process.

  • Action - Relevant Actions include Submit, Reset, and Custom.

    Use the Submit action to enable a user to submit a form.  Without an available submit button on a Form, user input can never be captured by the system.

    Use the Reset action to clear all form input restore any default values if applicable.

    Use the Custom action to write a JavaScript rule to perform any custom form logic on a button click.

  • Button Custom Logic - You can provide JavaScript rules for buttons with the Action Type of Submit or  Custom.  When the button is clicked, the rule will execute.  There is an unlimited number of uses for calling a JavaScript rule from a button.

    • For a Submit Button, you can dynamically assign the Form's redirect link on successful submission.  Refer to the documentation on After Submission Behaviors for specific examples.

    • For a Button with a Custom Action type, you can create your own version of a reset button that only clears or resets specific form elements.  This rule might be written as: data.vendorName = '';