Answer the question
In order to leave comments, you need to log in
Redirection to the specified page from the feedback form. How to implement?
There is a feedback form on the site. Opens in a modal window. After sending the request, a message about successful sending/not sending appears in the same window. In the code of the module I found the code:
<div class="cmbf-field-container">
<input class="button" type="submit" name="submit-<?php echo $id_module; ?>" value="<?php echo $send_button; ?>">
</div>
<div class="cmbf-success">
<?php echo $form_thanks; ?>
</div>
Answer the question
In order to leave comments, you need to log in
No way, because it's just text like "Thank you very much!" inside the <div> element (which is initially hidden).
After a successful submission of data from the form to the server, some JavaScript that performed the submission makes this element visible, so the message "appears" in the modal form.
You need to find and change the JavaScript that submits and then changes the visibility. Write the necessary transition there. But it feels like you can’t do it, you need experience.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question