Webanizr Logo
Open / sluit menu
module formWizards

The formWizards module sets restrictions/reformats form values of form fields while the field is being filled or after clicking to another field.

syntax

webanizr.collect('formWizards', parameters, callback)

parameters

The formWizards module accepts following parameters:

id__form (required)

The id of the form

list__wizards (required)

The list of wizards. Each wizard will contain following parameters:

type__wizard(required)

Type of the wizard. There are currently three types of wizards:

  • trim: trims the tabs, line breaks and spaces at the beginning and end.
  • toCase: sets all the letters to upper case and lower case.
  • zipCode: sets zipcode, street, housenumber and city fields.
  • duplicateCheck: takes the field and checks if it is already in the database by calling a datamodel function.

dataname__field(required)

The dataname of the form field to manipulate.

callback

This callback function to call.

demo

https://cdn.cpmodules.webanizr.com/demo/form-wizards/index.html

 

 

Changelog

25 Nov 2020 Version 1.3.1 - Updated the form validation on compareFields wizard

25 Nov 2020 Version 1.3.0 - Added compareFields wizard

9 Feb 2021 Version 1.5.0 - Added duplicateCheck wizard