Jump to content

pablo98

Member
  • Posts

    4
  • Joined

  • Last visited

pablo98's Achievements

  1. Hello everyone. I'm wondering if there is any way to pass information beetween some forms in the post submit redirect. My client was using some Jquery to modify the 'data-success-redirect' attribute of the form listening the submit button click to add some information for hidden fields that have in the second form , but this is not longer working since the update to the forms made in May 2023. Does SquareSpace have an alternative to manage this? Here is an example of what we want to do: Redirect URL configured in post -submit redirect: '/second-form' Redirect URL modified before when the user fill al the information and click submit : '/second-form?SQF_EMAIL=test@gmail.com' Note: The 'test@gmail.com' is the email digited by the user. At the moment I'm not allowed to share the site url
  2. Hello everyone. I'm wondering if there is any way to pass information beetween some forms. Here is what I would like to do: Have a form with a registration where I ask for the email, and after the submition, redirect the user to my second form with the email that the user digited and with this information update the value in the email input in this second form. 1. Does SquareSpace have an option for this ? 2. Is it possible to override the redirect url of the first form to add some parameters in the submit button event? For example the first form redirect to : /second-form Is it possible to modify it to something like this with code injection: /second-form?email=email@example.com Note: I don't have any implementation about this yet. I'm just figuring out if is possible.
  3. @Beyondspace Here is the link : https://triangle-lilac-xypn.squarespace.com/contact-1 the password is 123456. Here is the javascript code. The only thing that works is the document ready function and this console.log(" document ready .... "); <script src="https://code.jquery.com/jquery-3.6.3.min.js" integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU=" crossorigin="anonymous"></script> <script type="text/javascript"> $(document).ready(function () { console.log("Document ready..."); $(':input[type="submit"]').prop('disabled', true); $("#section-d3ff18c1-5716-429b-95cc-95dc2270de88").hide(); $('#number-a85ab0aa-713a-4077-8144-f8e7abbb3f3b-field').on('input',function(e){ console.log("JQUERY ",$(this).val()); console.log("JQUERY ",$(this).val().length); if($(this).val().length>=3){ $("#section-d3ff18c1-5716-429b-95cc-95dc2270de88").show(); } }); }); </script> The problem is that the .hide(), .show(), .on(), .prop() or any other method from Jquery isn't working. Are those method bloked with the new update in the forms ??
  4. Hello everyone, In our site we had some code injected that was taking some data of the forms and then making a custom behavior with it. I was working perfectly until the last update that SquareSpace made to the forms in May. After that it works no longer. Here are some examples of the Jquery selectors that stated to fail: $('input[type=submit]').on('click', function (e) { var redirect = $('form').data('success-redirect'); var email = $('input[type=email]').val(); var language = $('select').val(); }); function disableButton() { $(':input[type="submit"]').prop('disabled', true); } $("select").change(function(){ $(this).find("option:selected").each(function(){ }); }); All of them are used inside the $(document).ready(function(){ } ); Do you know if SquareSpace put some kind of blocks for the use of Jquery in the forms? Or it has to be used in a specific way ?
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.