What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Can I display a calculate value on a text box? Continued...

    Asked by KetZalPromos on October 30, 2013 at 05:46 PM

    Hey guys, the "http" to "https" didn't work, I'm goint to upload all what I did so you know better what's my problem:

    Before, I'll explain that the tab used to work, what we did then was copy all the source code + script and paste it on the static html then it was display normal, but when you clic on "submit" the form did nothing... that's why I follow your instructions about uploading it on a server... here the steps I did:

    1. Upload my form code + script on a free server

    2. iframe it on FB with this code, changing the http for https: <iframe allowtransparency="true" src="https://isleofsam.dx.am/Untitled-1.html" frameborder="0" style="width:100%; height:1400px; border:none;" scrolling="auto"></iframe>

    3. I tried the tab before post it but gives me this error:

    4. If I change the https to http it only display all in white

    Thanks for all the help and I hope to be less anoying on the next one jaja :S

    problem style source POST
  • Profile Image
    JotForm Support

    Answered by EltonCris on October 30, 2013 at 07:02 PM

    Hi there!

    Thank you for your very detailed explanation. That's greatly appreciated!

    1. Embedding the form source code directly on the static html tab won't work. Simply because FB will stripped off the form scripts and styles probably due to their security restrictions. Note that these scripts and styles are required in order for the form to run properly.

    2. https://isleofsam.dx.am/Untitled-1.html doesn't seem to support HTTPS that's why it won't work or displays on FB.

    --

    Anyway, I have now applied the codes directly to your form. This seems a bit tricky but it should now be fine. You can now embed the form directly to your FB page or you can use the following iframe code.

    <iframe allowtransparency="true" src="https://secure.jotform.co/form/32615116692857" frameborder="0" style="width:100%; height:1455px; border:none;" scrolling="no"></iframe>

    Let us know if you encounter any problems. Thanks!

  • Profile Image

    Answered by KetZalPromos on October 31, 2013 at 04:45 PM

    Thankyou! I bother you with one last thing... When I introduce 100, the calculate value says 1.20 and thats not acurate, maybe you put the old code, the one you pass to me first. The code that work is:

     <script>

    //calculation script

    var basefield  = document.getElementById('input_11');

    basefield.onkeyup = function(){

      var totalfield = document.getElementById('input_12');

     

      totalfield.value = ((basefield.value * 1) + (basefield.value * 0.2)).toFixed(2);

    }

    </script>

     

    If you can change it please. The easy way to verify if its working is introducing the value "100" to the text so the calculate answer should be 120 :) thank you so much!

  • Profile Image

    Answered by KetZalPromos on October 31, 2013 at 04:58 PM

    Forget bout it, it works fine... it's on my computer were it calculate it wrong, tried another computer and worked ok :S sorry I bother so much. Thanks for everything!

  • Profile Image
    JotForm Support

    Answered by ashwin_d on October 31, 2013 at 09:39 PM

    Hello KetZalPromos,

    I am glad to know that your form now works as expected.

    Do get back to us if you have any questions.

    Thank you!