Data privacy notice

 

When this content is loaded, usage information is transmitted to Vimeo and may be processed there.

 

             

Variables tab

Modified on Fri, 21 Jul, 2023 at 10:21 AM

Add hidden input fields in the variables tab. You can use them for data that should not be visible in the form, but needs to be accessed on the server or via JavaScript.

The variables tab of the formcycle Designer lets you add additional form, invisible fields. These are never shown in the form. They can be accessed on the server (plugins, workflow actions) or via JavaScript.

We distinguish between two different types of variables:

  • Server-only variables: They are never available in the browser and cannot be accessed from JavaScript. You can only use them on the server, eg. with plugins or workflow actions.
  • Server and client variables: They can be accessed from JavaScript and are also available on the server. This creates hidden input fields in the form:

Just as with normal form fields, you can access variables by their name. On the server, you need to use the alias instead. To set an initial value for a variable, enter it in the default value column. Finally, you can also prefill variables via URL parameters. The name of the URL parameter must match the name of the variable.

For each variable, you can set the following options:

Server side only
Whether the variable is available on the client or not, eg. whether it can be accessed in the browser via JavaScript.

Name
The name of the hidden input field, used in the browser to refer to the variable.

Alias
The name of the hidden input field, used on the server to refer to the variable.

Default value
Default value of the variable.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article