Howdy! How can we help you?
Form Callback Functions
Form Callback Functions
Form Submitted callback:
Function: mpfg_form_submitted
This function is called after the form is validated as valid and before the request is sent to the form-generator server to save the data in the database.
Example:
function mpfg_form_submitted(form_id, form_data){
console.log(form_id);
console.log(form_data);
//write your code here
}
This function will log the form ID & form data.
You have the flexibility to define this function inside the Additional JS tab in forms, giving you control over the form submission process.
Auto-generating unique reference ID for form submission
Automatically generating a unique reference number for the form submission
Usage
- Automatic generation of reference numbers helps to recognize the submitted data easily.
- Make the registration look legit.
A Dashform form generator provides a customizable option for generating reference numbers.
Steps to enable
- Go to add or edit form.
- Go to the settings tab
- At the bottom, you’ll find the option “Form submission reference.”
- Enable it, and you’ll see some options for setting it up.
- Prefix: Any small string or symbol that will be added to the start of the generated number, like your company’s short name or some unique identification.
- Suffix: Any small String or Symbol that will be added to the end of the generated number.
- Start Number: Starting number for generating the reference number.
- Minimum digits that should be present in the reference number.