Skip to Content

crmForm()

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

JavaScript October 17, 2020

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.

Source File

This functionality is part of the Nebula Companion plugin.