Webanizr Logo
Open / sluit menu
module FormUtilities

Last change: August 1, 2019

Current version: 1.0.1

The FormUtilities module contains utilities for multiple purposes to be applied on a given form. The module can be applied on any form, even forms not created using buildForm. 

syntax

webanizr.collect('formUtilities', parameters, callback);

parameters

The formValues module accepts the following parameters:

id__form (required)

The html id of the form from which the utility is applied on.

preventsubmit__enter (optional)

If this parameter is set to true, the module prevents the form will be submitted on hitting enter on the keyboard. This is often useful in forms where users are confused and hit enter to get to the next field and accidentally submit the form.

callback

The callback is not applicable yet. 

demo

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

Changelog

  • August 1, 2019: 1.0.1 - initial stable version