• Resolved michaaeell

    (@michaaeell)


    Instead of using a thank you page I want to print a thank you message on the same page. Is this possible?

    With jQuery, I can make a button that hides the form when it is clicked but this same button should also submit the form and show a text-box with the thank you message. So 1 button that submits form –> hides form and shows text-box. Is this possible?

Viewing 1 replies (of 1 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @michaaeell

    If you want to do all these with jQuery, it should be implemented by your own code, not as part of the plugin. You can submit the form in background, inserting a “HTML Content” field in the form with the following piece of code:

    
    <iframe name="silent_submission" id="silent_submission" style="display:none;"></iframe>
    <script>
    fbuilderjQuery(document).one('showHideDepEvent', function(){
    jQuery('[id*="cp_calculatedfieldsf_pform_"]').attr('target', 'silent_submission').on('submit', function(){
    setTimeout(function(){jQuery('.cff-processing-form').remove();}, 2000);});
    });
    </script>
    

    But the rest of behavior described should be implemented by yourself.

    Best regards.

Viewing 1 replies (of 1 total)
  • The topic ‘Thank you message on same page’ is closed to new replies.