Form Element – Set as Mandatory

Business Background

Mandatory fields on a web form are input fields that users must fill out before they can successfully submit the form. These fields ensure that essential information is collected, helping businesses, organizations, or developers capture the data they need to proceed with actions like user registration, lead generation, or service requests.

Titan Solution

The form element lets you mark all the fields in a form as mandatory instead of marking the individual elements on a form as mandatory. You can use it with any conditional logic.

How to Guide

Note:
Note:

Prerequisite:

  1. Add a form and populate it with a few elements.
  2. Alternatively, use the Titan Genie to configure a form.
  3. Add a name for the form under Metadata > Tag. This helps you to select the correct form.


In this example, we add form interactivity to a button.

  1. Click the On Click Action icon. The On Click Action screen opens.
On Click Action icon
On Click Action icon
  1. Click the + icon. The Add Node screen opens.
+ icon
+ icon
  1. Under Element Interactivity, select the Form Interactivity option and click the Next button. The Add Node/Form Interactivity screen opens.
Add Node screen
Add Node screen
  1. Use the Form element drop-down list to select the form. This is the name you added as a tag as part of the prerequisites.
  2. Click the Set as mandatory radio button and then click the Next button.
  3. If necessary, add a tag and click the Insert button. The Form Interactivity is added to the On Click Action screen.
Add Node/Form Interactivity
  1. Click the Apply button.
Form Interactivity added to On Click Action screen
Form Interactivity added to On Click Action screen
  1. Save and Preview the project. When the user clicks the button, all the fields in the form will be marked as mandatory. This option overrides any individual mandatory settings.
Example
Example
Note:

Want to learn more about our Titan/ Salesforce Integration? Read about our forms for Salesforce.

Hidden Title

Need more help?

Titan logo
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.