Trigger a modal window after successful submission
-
Hi, I’m trying to display a custom modal window upon successful submission of the form. I checked the documentation and am using what’s provided, but it doesn’t do anything. I know the function I’m calling which displays the modal works, but it’s not being triggered for some reason. If I put a console log in the script, that doesn’t work either. Am I doing anything wrong here?
<? add_action('fluentform/before_insert_submission', 'your_custom_before_submission_function', 10, 3); function your_custom_before_submission_function($insertData, $data, $form){ ?> <script> displayModal("#modal"); </script> <? } ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Trigger a modal window after successful submission’ is closed to new replies.