Create hidden variables in a form
- Updated: 2024/09/19
Create hidden variables in a form
You can create hidden elements in a form to access hidden variables in a process automation in Process Composer.
As a Pro Developer, when you embed Automation Co-Pilot using an iFrame widget integration into enterprise applications (such as Salesforce or Genesys Cloud), you can use hidden variables to pass data into a process where the data is needed for the process, but is not required to be visible for the user to view on forms.
For example, you can have a form that retrieves data (such as a record ID in Salesforce or a Conversation ID in Genesys Cloud) that is important to downstream processing but is not important to the end-user directly from the host page. Instead of mapping the data to a visible form field, you could map the data to a hidden variable. For hidden variable code examples, see the following:
- String
- Number
- Date
- Time
The Has errors condition remains exclusive to visible form elements only.
To enable task bots to use hidden variables, create an input variable when building the bot and assign the hidden element as the input for the variable in Process Composer.