Is this really the version you are looking for? Kentico Xperience 11 Documentation is no longer updated. Use the switcher in the header to choose your product version.
When configuring forms, you can set values dynamically using various types of macro expressions, for example based on the values submitted in the form's fields. The following table shows which macro types you can use for particular form configuration values.
Localization | General (K#) | Query string | Cookie | Path | Form data macros | |
|---|---|---|---|---|---|---|
General tab – Display text | ||||||
General tab – Redirect to URL | ||||||
General tab – Submit button text | ||||||
Fields tab – Default value |
Fields tab – Field caption |
Fields tab – Table layout |
Email notification tab – all fields |
Autoresponder tab – all fields |
You can use values from current context when configuring a form. This can be achieved using a data macro in the {%field_name%} format. The field_name part of the macro is the Field name value of a particular form field. When the form is submitted, the macros are automatically resolved and replaced with particular data from the form.
These macros can be used in the following text fields:
When configuring notification emails for a form, you may use the following values:
FirstName and LastName are the names of fields in the form. As a result, the notification email subjects will contain the first and last name submitted by the user in the related form record.
If you enter the Display text value on the General tab of the form like this:
The text will be resolved as the following when "Jane" was entered in the First name field by the user:
If you need to display the form on a multilingual website, you can localize field captions and other text strings using localization macros, e.g.:
You can find more details in Localizing text fields.