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

    Radio button calculation with condition

    Asked by Wtfuck on January 06, 2013 at 04:10 PM

    Hi again,

    Is it possible to have a form to calculate automaticly.

    http://form.jotformpro.com/form/30055060577954

    Here is the form

    Can you help me ?

  • Profile Image
    JotForm Support

    Answered by idarktech on January 06, 2013 at 04:24 PM

    Hi,

    That's possible using your form source code.

    Let us know the formula so we can help you create the scripts to achieved the calculation function to your form?

    Thanks!

  • Profile Image

    Answered by Wtfuck on January 06, 2013 at 05:00 PM

    Cool ! :)

    I write on hover text the formula

    Ex: (Tshirt Black  + Number of line + Print A4 + 6€ if it less than 50 ) X QTE

    Thx

  • Profile Image
    JotForm Support

    Answered by idarktech on January 06, 2013 at 05:14 PM

    I see. Thanks!

    I'll work on this but it may take some time. I'll update you here later today. =)

  • Profile Image

    Answered by Wtfuck on January 06, 2013 at 05:35 PM

    No probelm Take your time !

    This can save me a lot of time and money !

    Thank you for your great app !

  • Profile Image
    JotForm Support

    Answered by idarktech on January 06, 2013 at 06:15 PM

    Ok, just some clarifications. What do you mean on Black (+1,5), is 5 the price for Black T-Shirt?

    And the Number of line (+0,282)?

    Thanks!

  • Profile Image

    Answered by Wtfuck on January 06, 2013 at 07:28 PM

    For Black T-Shirt the price is 1,5€

    but if i selected White T-Shirt The price is 1,18€

    And if i want to add line of text on my t shirt each line cost 0,282€

  • Profile Image
    JotForm Support

    Answered by idarktech on January 06, 2013 at 11:00 PM

    Hi,

    Sorry for a bit delay.

    First off, I have cloned your form and modified something. I have replaced the spinner tool with a normal number textbox because I can't control event functions using spinner and added a total textbox. Please clone the following form and get its source code, follow this steps.

    1. Clone this form: http://www.jotformpro.com/form/30056485512955?

    2. Get the form's source code, here how: How to get your Form Source Code

    3. Paste that code to notepad and append this scripts to it. http://pastie.org/pastes/5634090/text

    You can check how it works here: http://idarktech.com/test/calculation_163197.html

    I am not pretty sure if I got the formula properly so feel free to inspect and let me know if something went wrong. Thanks!

  • Profile Image

    Answered by Wtfuck on January 07, 2013 at 03:33 AM

    Wow !

    Something is missing at the end i need this (TOTAL X Qte )

    i made a screenshot

  • Profile Image
    JotForm Support

    Answered by Welvin on January 07, 2013 at 05:25 AM

    Hi,

    The total is shown on my colleague sample form: 

    Have you change some fields on your form? Thanks

  • Profile Image

    Answered by Wtfuck on January 07, 2013 at 05:28 AM

    No i didn't change it's just a screenshot that i made this is what i need

  • Profile Image
    JotForm Support

    Answered by idarktech on January 07, 2013 at 05:30 AM

    @Wtfuck

    Thanks for that clarification. I really felt something is lacking. I'll revise the code later. Stay in touch! =)

  • Profile Image
    JotForm Support

    Answered by idarktech on January 07, 2013 at 05:39 AM

    By the way, do I need to add the "Unit Price" field separated from the Total field? Let me know so I can add it on the codes. Thanks!

  • Profile Image

    Answered by Wtfuck on January 07, 2013 at 05:57 AM

    I don't understand ?

    How separate ?

  • Profile Image
    JotForm Support

    Answered by idarktech on January 07, 2013 at 06:16 AM

    @Wtfuck

    Sorry for the confusion. I am basing on your screenshot. You have this "Unit Price" field and "Total" field. Unite Price field doesn't exist on my form, did you create this just to show an example? Or do you really want it to be added on the form as well?

    Thanks!

  • Profile Image

    Answered by Wtfuck on January 07, 2013 at 06:31 AM

    AHH yes

    Yes i want Unite Price. Like my screenshot

    I just change Your total by Unit change because is not the total

    Many Thanks

  • Profile Image
    JotForm Support

    Answered by idarktech on January 07, 2013 at 11:10 AM

    Ok, here's the new form and the script.

    1. Clone this form http://www.jotform.com/form/30056485512955

    2. Append this script on its source code. http://pastie.org/pastes/5643189/text

    Just let me know if there's a mistake. I have updated the example as well. Thanks!

  • Profile Image

    Answered by Wtfuck on January 07, 2013 at 12:55 PM

    It's work like a Charm. Many Thanks

    If i want to add some feature later you think i can make alone with the code ?

    Thx ! ;)

  • Profile Image
    JotForm Support

    Answered by EduardoMendez on January 07, 2013 at 01:32 PM

    We are glad to hear it works well!

    As per your question, let us know what kind of feature you would like to add and we'll be glad to look into it for you!