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

    Calculation widget value embedded on TEXT field not updating properly

    Asked by eganet2 on February 19, 2017 at 04:53 AM

    I am using the calculation widget with unique name {theFare} to show results from some conditional statements. For example one of the conditional statement is that if one option from the Single Choice field is selected, then its value should be shown in the calculation widget. I have four of these conditions. And up to this point all is working fine. See the screenshot below:

     

    Problem 1: Where I have a problem is that, I have passed this Calculation Widget value by using its unique name into a Text field which serves as a Booking Cart. However, on the frontend no value is displayed instead I see this: {theFare}

    Problem 2: I have duplicated this Booking Cart to the other two pages but it’s not working well as well.

    Page URL:
    https://form.jotformeu.com/70351402198350

  • Profile Image
    JotForm Support

    Answered by Nik_C on February 19, 2017 at 09:24 AM

    I checked your form and I see the problem. Please allow me some time to investigate this problem further. I'll get back to you as soon as possible.

    Thank you!

  • Profile Image
    JotForm Support

    Answered by Nik_C on February 19, 2017 at 12:52 PM

    Thank you for your patience, I was able to make it work with regular text field instead of Form calculations widget field, what I did I copied the value from Form calculations widget (The fare for the selected service is:) to another text field and place that value in Text field:

    And that worked fine:

    Regarding the values not showing in all pages, I found out that as soon as the next button is clicked, all calculation fields are zeroed out. For example, if page breaks are removed everything works fine.

    So I will investigate that part further and get back to you.

    Thank you for your understanding.

     

  • Profile Image

    Answered by eganet2 on February 19, 2017 at 01:27 PM

    Cool, it works but how can I make currency to show as default e.g. €0

     

    Will be waiting for the feedback of your investigation for the other stuff.

  • Profile Image
    JotForm Support

    Answered by Nik_C on February 19, 2017 at 01:42 PM

    Just add to the condition I created, for copying the value from Form calculation widget to text field, a currency sign:

    That way the currency will be copied together with the value.

    I'm still working on the other problem.

    Thank you!

  • Profile Image

    Answered by eganet2 on February 19, 2017 at 02:19 PM

    I followed the conditional statement (Update/Calculated Field) as you requested above. The currency only appears when data is filled. It doesn’t appear by default. Any fix?

     

  • Profile Image
    JotForm Support

    Answered by jonathan on February 19, 2017 at 03:45 PM

    I believe there is a misunderstanding on how the TEXT field work.

     

    The TEXT field is a static read-only type of field.

    It is not an input field so it does not have any dynamic input capability or functionality.

    The way you were trying to populate the TEXT field with values from the calculation widget will not work. You can only design and edit the text value of the TEXT field using its own editor.

    You may want to try using directly those calculations widget instead and just use CSS codes to style them so that they can appear like those to the booking cart table you did with TEXT field.

    Hope this help. Let us know if you need further assistance.

  • Profile Image

    Answered by eganet2 on February 19, 2017 at 03:56 PM

    Well, on the "Your Booking Cart" field, the cell which contains Extra Services works well, as you can see the default currency value is shown.

    I expect the same for the Transfer fare cell. Considering both cells are showing values from the Calculation field. Except that the calculation for Extra Services actually does the calculation while that of the transfer fare just show the results of the conditional statement.

  • Profile Image
    JotForm Support

    Answered by jonathan on February 19, 2017 at 05:25 PM

    I apologize for my mistake. The feature was actually working.

     

    I cloned your form to review it properly, I noted the calculation widget for Transfer fare... doesn't have a formula on it.

     

    Can you run the configuration wizard and apply the needed formula. You can type in the pound currency symbol as text after adding the formula field.

    Ex:

    I did this on my test and it seems to fix that missing currency symbol on the chart.

     

     

    Let us know how it goes.

     

  • Profile Image

    Answered by eganet2 on February 19, 2017 at 05:32 PM

    PERFECT! Works as I wanted. Thanks Jonathan.

  • Profile Image
    JotForm Support

    Answered by jonathan on February 19, 2017 at 06:38 PM

    Thank you for letting us know it works now. :-)

    Cheers