Select Page
Skip to main content
< All Topics
Print

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

  1. Automatic generation of reference numbers helps to recognize the submitted data easily.
  2. Make the registration look legit.

A Dashform form generator provides a customizable option for generating reference numbers.

Steps to enable

  1. Go to add or edit form.
  2. Go to the settings tab
  3. At the bottom, you’ll find the option “Form submission reference.”
  4. Enable it, and you’ll see some options for setting it up.
    1. 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.
    2. Suffix: Any small String or Symbol that will be added to the end of the generated number.
    3. Start Number: Starting number for generating the reference number.
    4. Minimum digits that should be present in the reference number.
Table of Contents