• Resolved ollyeden

    (@ollyeden)


    Hello,

    i am building an new Form today, but i am not able to use two separat Divide in one Equation.

    Hope you can help:
    I am using the Calculation withe Dates Form:
    abs(fieldname2-fieldname1) * (fieldname3+50) + (fieldname4*fieldname5)

    In Fieldname4 i have an Dropdown Menu to Choose Persons, in Fieldname5 you could Choose separat Prices.

    The Last Form let the Summary in the Cost Field being empty.
    What is my mistake?

    Thx and kind regards
    Oliver

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @ollyeden

    The structure of the equation is correct, but I cannot be sure what is the cause of the issue without checking the form in action. Please, send me the URL to the page where the form is inserted.

    Best regards.

    Thread Starter ollyeden

    (@ollyeden)

    Hello Codepeople,

    thank you for your fast reaction!

    You find the Form unser
    https://www.haus-seedeich.de/Preisrechner

    I am using the following Structure:

    abs(fieldname2-fieldname1) * (fieldname6) + (60) + (fieldmame9*fieldname11) + (fieldname10) + (fieldname7) + (fieldname8)

    Kind regards
    Oliver

    Plugin Author codepeople

    (@codepeople)

    Hello @ollyeden

    The issue is simple, there is a typo in the equation, the correct is: fieldname9, but you have entered: fieldmame9

    Best regards.

    Thread Starter ollyeden

    (@ollyeden)

    Hello,

    i fixed it into fieldname9, but it dosn’t Work ;(

    abs(fieldname2-fieldname1) * (fieldname6) + (60) + (fieldname9*fieldname11) + (fieldname10) + (fieldname7) + (fieldname8)

    Do you a another Idea?

    Kind regards
    Oliver

    Plugin Author codepeople

    (@codepeople)

    Hello @ollyeden

    The issue now is caused by the values you have entered into the choices of the fieldname11 field:

    0,00
    1,70
    2,50
    0,00

    But in javascript these are not valid numbers, the correct would be:

    0.00
    1.70
    2.50
    0.00

    Using the dot as decimal separator and not the comma symbol.

    Best regards.

    Thread Starter ollyeden

    (@ollyeden)

    Hello Codepeople,

    thank you very much, that’s it.

    After changing , to . it works.

    Kind regards,
    Oliver

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘To Divide a second entry dosn’t work’ is closed to new replies.