Child pages
  • JavaScript functions

Versions Compared

Key

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

Since version 2.21.5 ConfiForms provides some helper functions for you to use to cover some common scenarios


Excerpt
Available since versionFunction DescriptionDemo

Status
colourGreen
title2.21.5

function cfAddFieldRequired(formId, fieldName)

Adds required field mark / asterisk. This does not make the field required - you need to have an additional validation in place to validate the field's value

Multimedia
namecfAddFieldRequired.mov

Status
colourGreen
title2.21.5

function cfRemoveFieldRequired(formId, fieldName)Removes required field mark / asterisk from a field. Important to know that if the field is set as required in ConfiForms Field Definition then it still remains as required and users must provide a value before they can submit the form. This function only changes the visual appearance of a field label

Status
colourGreen
title2.21.5

function cfAddTabStop(formId, fieldName)Adds "tab stop", meaning that the field will be excluded from form's set of fields when moving around using the "tab" key 

Status
colourGreen
title2.21.5

function cfRemoveTabStop(formId, fieldName)Removes the "tab stop" marker from a field