Skip to Content
Menu

crmForm()

Easily collect form data for the CRM by adding a classes to input fields.

JavaScript February 7, 2021

Usage

JavaScript
.crm-column_name

Parameters

column_name
(Required) (String) The name of the column to add the input value to
Default: None

Parameter Notes

This function looks for form [class*="crm-"] which is any input field in a form with a class that begins with “crm-“. The string after the “crm-” in the class name will be used as the column name in the crm() send, the value of the input field will be used as the cell data.

Request or provide clarification »

Examples

JavaScript
<input class="crm-first_name" type="text" placeholder="Enter your first name..." />

Additional Notes

This function is automatically triggered on wpcf7:submit so all forms using Contact Form 7.

Was this page helpful? Yes No


    A feedback message is required to submit this form.


    Please check that you have entered a valid email address.

    Enter your email address if you would like a response.

    Thank you for your feedback!

    Source File

    This function was not found in /assets/js/modules/analytics.js. Please report this error.

    No Hooks

    This function does not have any filters or actions available. Request one?

    Override

    To override or disable this JavaScript function, simply redeclare it with the exact same function name. Remember: Some functionality is conditionally loaded via dynamic imports, so if your function is not overriding properly, try listening for a DOM event (described below).

    JavaScript
    function crmForm(column_name){
        //Write your own code here, leave it blank, or return false.
    }