Forwarding to a specified page with the feedback form. How to implement?

Available on the website feedback form. Opens in a modal window. After sending the request in the same window, a message about successful sending/not sending. In the code module found code:
<div class="cmbf-field-container">
 <input class="button" type="submit" name="submit-<?php echo $id_module; ?>" value="<?php echo $send_button; ?>">
 <div class="cmbf-success">
 <?php echo $form_thanks; ?>

How can we replace this code to get the desired? please help.
April 7th 20 at 10:59
2 answers
April 7th 20 at 11:01
No matter what, because this is a text only type "Thank you!" inside an element
(which is initially hidden).

After successful sending form data to the server a JavaScript that performed the sending, makes this item viewable, respectively, the message "appears" on the modal form.

You need to find and change the JavaScript that sends, and then change the visibility. To register to the necessary transition. But am feeling to do so, you can not, you need experience.
Found this script, please help me to fix it.
As I understand, it is necessary to change this {

the <script>
 jQuery("#cmbf-phone<?php echo $id_module; ?>").mask("<?php echo $phone_mask ?>");

 jQuery('document').ready(function() {
 jQuery('#cmbf-form-<?php echo $id_module; ?> input').focus( function() { 
jQuery(this).parents().eq(1).removeClass("valid error");
 jQuery('#cmbf-form-<?php echo $id_module; ?>').on('submit', function (event) {
 var form = jQuery(this);
 var error = false;

 form.find('input[type="text"]').each(function() {
 if (!jQuery(this).val().length) {
 error = true;

 if (!error)

 ajaxsendmessage function() {
 type: 'POST',
 url: form.attr('action'),
 data: form.serialize(),
 cache: false,
 beforeSend: function() {
 form.find('input[type="submit"]').attr('value', '<?php echo $send_button_after; ?>');
 form.find('input[type="submit"]').attr('disabled', 'disabled');
 success: function () {
 error: function(jqXHR, textStatus, errorThrown) {
 console.log(textStatus, errorThrown);

 jQuery('#cmbf-button-container-<?php echo $id_module; ?>').click(function() {
 jQuery('#cmbf-form-container-<?php echo $id_module; ?>, #cmbf-obfuscator-<?php echo $id_module; ?>').fadeIn('slow');

 jQuery('#cmbf-obfuscator-<?php echo $id_module; ?>, #cmbf-form-close-<?php echo $id_module; ?>').click(function() {
 jQuery('#cmbf-form-container-<?php echo $id_module; ?>, #cmbf-obfuscator-<?php echo $id_module; ?>').fadeOut('slow');
- claude.Hess commented on April 7th 20 at 11:04
Immediately after the form.find('.cmbf-success').slideDown("fast"); (or instead) you can register the redirect:
$(location).attr('href', '');

Guess what you need to change the line - vanessa.Cassin commented on April 7th 20 at 11:07
@vanessa.Cassin, yeah, it did, thank You very much - claude.Hess commented on April 7th 20 at 11:10
April 7th 20 at 11:03
This code, apparently, just displays a message like "Thank you for submitting the form", and a redirect should be in a different place.
but the redirect do not, need at the click of a submit button to do a redirect. I understand this is done to window.location.replace("https://"); only that I should add? - claude.Hess commented on April 7th 20 at 11:06

Find more questions by tags PHPProcessing URL