[NSFW] How to Create New Record From Form Elementor to save suiteCRM
-
Hello,
I use form elementor. i want save to suiteCRM.
I use webhook https://developers.elementor.com/forms-api/#Form_New_Record_Action.in my case :
I want new record in suiteCRM.this is my code :
add_action( 'elementor_pro/forms/new_record', function( $record, $handler ){ $form_name = $record->get_form_settings('form_name'); //Check that the form is the "create new user form" if not - stop and return; if ('External Agent' !== $form_name) { return; } $raw_fields = $record->get('fields'); $fields = []; foreach ( $raw_fields as $id => $field ) { $fields[ $id ] = $field['value']; } $cust_name = $fields['cust_name']; $number = $fields['number']; wp_remote_get('https://www.domain.com/index.php?entryPoint=externalAgent&number='. $number . '&cust_name=' . $cust_name . '&name=' . $name. '&type=' . $type. '&company=' . $company); }, 10, 2 );
The page I need help with: [log in to see the link]
- The topic ‘[NSFW] How to Create New Record From Form Elementor to save suiteCRM’ is closed to new replies.