Log in
Log in with USB
Inloggen met vingerafdruk wordt binnenkort mogelijk.
Last change: July 23, 2020
Current version: 1.11.10
The formValues module collects all values from the given form. The module is triggered by the onsubmit of the form. The formValues module blocks the normal submission of the form. Posting the data should therefore happen in the callback function.
webanizr.collect('formValues', parameters, callback);
The formValues module accepts the following parameters:
The html id of the form from which the values should be collected.
If this parameter is set to true, the module does not wait for the onsubmit but collects the values direct when called. This option can be used when the onsubmit is triggered elsewhere and this module is then used to collect the formvalues on that moment.
If set to true, not only the values, but also the labels of selects and radio fields will be collected. The label text will be stored with as key "label" + fieldname.
Sets submit button's text value as given text. If duration__processing is given, sets the submit button text for that amount of duration then resets the text of submit button. Otherwise, sets the text and never resets.
If set, sets the submit button text for that amount of duration then resets the text of submit button. The duration is in milliseconds.
Sets a feedback message after submitting the form. The text appears at the bottom of the submit button and dissappears after 5 seconds.
If set to true, the feedback message(text value of text__bottom parameter) after submitting the form will be translated.
The callback is called when the form is submitted and the values are collected. The callback receives the form values als parameter.
Collecting form values:
https://cdn.cpmodules.webanizr.com/demo/collect-form-values/index.html
Feedback text on click submit form button:
https://cdn.cpmodules.webanizr.com/demo/feedback-submit-button/index.html
Translate submit form feedback message:
https://cdn.cpmodules.webanizr.com/demo/translations/index.html