• Resolved espointpolish

    (@espointpolish)


    Hi there, my calculator looks great in the preview but it’s not loading on the front end and the browser console says “SyntaxError: Unexpected end of input.” I keep adding parentheses where I think it might help but so far nothing’s working.

    I have a field for people to enter their base pay (id_0) and then four formulas I set up like this:

    quantity_field_id_0 + 5100

    ((total_field_id_1) * .035) + (total_field_id_1)

    ((total_field_id_2) * .0325) + (total_field_id_2)

    ((total_field_id_3) * .035) + (total_field_id_3)

    The calculations are working perfectly in the preview but I know I must be doing something wrong! Thanks very much for taking a look.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, @espointpolish

    This error indicates an incorrectly configured formula. Your formulas show that you are using the value .035 , however, to correctly apply this value, you need to enter it as 0.035 (you should enter 0 in decimal numbers less than zero.)
    Also, in this case, additional brackets are not needed, since the multiplication is performed first.
    Here is an example of a correct formula:

    (total_field_id_1) * 0.035 + (total_field_id_1)

    I recorded a video of the correct operation of the calculator on the front-end:

    Link

    Best regards.

    Thread Starter espointpolish

    (@espointpolish)

    Incredible!!! Thank you so much! It’s working now and I’m really happy.

    At your service, @espointpolish

    We are glad that the issue has been resolved.

    If you have any further questions please let us know and we will help you.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Need help with formulas’ is closed to new replies.