bahadweikat
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
i tried to put simple code after the word return like this :
if($form->id != 5) { echo "test"; return; }but on submission the form keep loading
it looks like the code ends when it goes inside the if statement ` if($form->id != 5) {
return;
}thank you @techjewel
i looked on the documentation and i used the following code inside function.php file :
add_action('fluentform_submission_inserted', 'your_custom_after_submission_function', 20, 3); function your_custom_after_submission_function($entryId, $formData, $form) { if($form->id != 5) { return; } global $wpdb; if (isset($_POST['submitbtn'])) { global $wpdb; $GText = $_POST['input_text']; $wpdb->insert('sg_AdminPage',array('GymName'=>$Gtext)); echo "record inserted"; } }i have created blank form in fluentforms contains only text input with name attribute is “input_text” and submit button (the default one), on submission the form is submitted without inserting the value of the text input inside the db. where is the mistake i did ?
can you please help- This reply was modified 6 years, 7 months ago by bahadweikat.
Viewing 3 replies - 1 through 3 (of 3 total)