Jump to content

Is it possible to save calculator form filling with some code?

Recommended Posts

Site URL: https://moose-soybean-sxzd.squarespace.com/designselv-prisberegner

Hi all,

I have installed a custom renovation calculator onto my squarespace site. I was wondering if it was possible to create a "Save" button/link for the customer to fill out the form later? Every time the page is reloaded, all the data is deleted.

And is it also possible to add a button next to "NÆSTE–>" that goes to the previous slide as a "BACK"? "Næste" means "next" fyi. This isn't priority.

For the installation i used the script below and embedded it into a code block, but I have no experience with javascripts. Please help.

Site url: https://moose-soybean-sxzd.squarespace.com/designselv-prisberegner
No password needed.

Best regards


<div class="calculator" data-calc-id="tq9FCFquMbdWJg8q3"></div>
<script type="text/javascript" id="convertcalculator-embedder-ykFDuajp8irTCZujR" class="convertcalculator-async-script-loader">
  (function() {
    function async_load(){
      var s = document.createElement("script");
      s.type = "text/javascript";
      s.async = true;
      var url = 'https://app.convertcalculator.co/embed.js';
      s.src = url + ( url.indexOf("?") >= 0 ? "&" : "?") + "ref=" + encodeURIComponent(window.location.href);
      var embedder = document.getElementById('convertcalculator-embedder-ykFDuajp8irTCZujR');
      embedder.parentNode.insertBefore(s, embedder);
    }
    if (window.attachEvent)
      window.attachEvent("onload", async_load);
    else
      window.addEventListener("load", async_load, false);
  })();
</script>

 

Link to comment
  • 2 months later...
  • Replies 2
  • Views 430
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 8/20/2021 at 4:19 PM, KasperBed99 said:

Site URL: https://moose-soybean-sxzd.squarespace.com/designselv-prisberegner

Hi all,

I have installed a custom renovation calculator onto my squarespace site. I was wondering if it was possible to create a "Save" button/link for the customer to fill out the form later? Every time the page is reloaded, all the data is deleted.

And is it also possible to add a button next to "NÆSTE–>" that goes to the previous slide as a "BACK"? "Næste" means "next" fyi. This isn't priority.

For the installation i used the script below and embedded it into a code block, but I have no experience with javascripts. Please help.

Site url: https://moose-soybean-sxzd.squarespace.com/designselv-prisberegner
No password needed.

Best regards


<div class="calculator" data-calc-id="tq9FCFquMbdWJg8q3"></div>
<script type="text/javascript" id="convertcalculator-embedder-ykFDuajp8irTCZujR" class="convertcalculator-async-script-loader">
  (function() {
    function async_load(){
      var s = document.createElement("script");
      s.type = "text/javascript";
      s.async = true;
      var url = 'https://app.convertcalculator.co/embed.js';
      s.src = url + ( url.indexOf("?") >= 0 ? "&" : "?") + "ref=" + encodeURIComponent(window.location.href);
      var embedder = document.getElementById('convertcalculator-embedder-ykFDuajp8irTCZujR');
      embedder.parentNode.insertBefore(s, embedder);
    }
    if (window.attachEvent)
      window.attachEvent("onload", async_load);
    else
      window.addEventListener("load", async_load, false);
  })();
</script>

 

The page is not found, technically the form field can be saved to localstorage and restore when revisit

image.thumb.png.4259e95f734e33e15b3550a906447135.png

Edited by bangank36

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.