• Resolved RashaMatt

    (@rashamatt)


    The encrypted message gets submitted to XQ, but the UNENCRYPTED original message also gets sent to the form recipient (i.e. the normal contact form action).

    Is this expected behavior?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter RashaMatt

    (@rashamatt)

    FYI, to prevent the Themify Contact form from doing a normal (unencrypted) form submission, it is necessary to add some Javascript to the page to disable the normal form operation:

    
    <script>
    (function() { // Contact-us script
    
      function onready() {    // Adjust Themify forms for operation with XQ
          //console.log( 'Contact: onready' )
          const forms = jQuery( 'form.builder-contact' )
          if( forms && forms.length>0 ) {
              forms.addClass( 'sending hidden' )    // Hide spinner & prevent normal Themify form submission (let XQ script handle it)
              .on( 'submit', () => forms.removeClass('hidden') )   // Reveal spinner when Submit button is clicked
              console.log( forms.length + ' .builder-contact forms disabled ?' )
          }
          else console.warn( 'No .builder-contact forms found! ?' )
      }
    
      //console.log( 'Contact: run' )
      const tid = setInterval( () => {
          if( jQuery ) {    // Wait until jQuery is loaded
              //console.log( 'Contact: JQ loaded' )
              clearInterval( tid )
              jQuery( document ).ready( onready )
          }
      }, 200 )
    })()
    </script>
    
    <style>
    .builder-contact.sending.hidden .tf_loader {
        display: none;
    }
    </style>
    
Viewing 1 replies (of 1 total)
  • The topic ‘Doesn’t work with Themify?’ is closed to new replies.