Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the S4S Mapping Wizard, map the hidden field in the same way that you would map any of the other fields:

...

2. Use custom css class to turn any existing form field into hidden form field.

This method will not require any code compilations or build deployments.

  • Add the following custom css class to a custom css file which saves in “\sitecore modules\Web\ExperienceForms\css\FormStyles.css” on the file system.

       .hidden-field { visibility:hidden; }

  • Add the CSS file to the Form, or to the Standard Values of the Form template.

...

  • Then add the CSS class to whichever form field you want hidden on the form.

...

  • The form field is visible in the Forms Designer, and within the Mapping Wizard.

...

  • Publish relevant Sitecore items.