T
T
torik22rus2020-02-10 15:45:26
PHP
torik22rus, 2020-02-10 15:45:26

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>

What can I replace this code with <?php echo $form_thanks; ?> to get what you want? please help.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
AUser0, 2020-02-10
@torik22rus

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.

A
Andrew, 2020-02-10
@freiman

This code seems to just print a message like "Thank you for submitting the form", and the redirect should be in a completely different place.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question