Hidden params
You can pass hidden data to your form with the help of input (hidden) fields or special helper in Web-forms. User will not see them.
Using of input (hidden) field
Create Hidden field.
You can pass the following parameters:
- Custom text;
- Current page link;
- Referer page.
Using helper
You can use helper to add hidden params. Just add them, when you embed form in Webasyst template.
{$wa->multiform->form($id, $options)}
where
$id - int, - your form ID. $options => array( 'params' => array( 'PARAM_NAME' => 'PARAM_VALUE' - value can be string or Smarty variable ) );
Let's try to do it:
ID of my form is 25. I added one hidden field in admin area and it will show your referer. My embed code is:
{$wa->multiform->form(25, [ 'params' => [ 'Custom text' => 'This is my value', 'Smarty variable. This will be page ID' => $page.id ] ])}
Example: