Get value from pipes
-
I am trying to work up a submission to a non-supported CRM. But the checkboxes that use pipes to hide the checkbox value are submitting the user visible value not the hidden value to my CRM.
My code is below
Contact Form 7 Dashboard[checkbox hydration id:hydration class:check-boxes use_label_element "Select|hydrate"]PHP for CRM submission (cut down)
var wpcf7Elm = document.querySelector( '.wpcf7' );
wpcf7Elm.addEventListener( 'wpcf7submit', function( event ) {
var hydrate = getArrayValue('hydration');
var formData = {
hydrate: hydrate,
};
$.ajax( {
type: "POST",
url: "https://xxx/crm.php",
data: formData,
} );
}, false );This results in the CRM displaying the ‘Select’ value not the ‘hydrate’ value.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Get value from pipes’ is closed to new replies.