• Resolved robintalbot

    (@robintalbot)


    Hi.

    Simple questions, I’m sure.
    1- Where do I have to put a conditional rule for my form ?
    2 – If I want a number to be at least 100, so when it’s less thant 100 it goes back to 100 by itself, would I write something like that …

    if(field1 < 100){
    field1.value = 100;
    }

    Thanks for the help, great plugin by the way.

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

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

    (@codepeople)

    Hello @robintalbot

    You simply should use the MAX operation as part of the equation.

    For example, assuming than your current equation is: fieldname1+fieldname2 you should edit it as follows: MAX(fieldname1+fieldname2, 100)

    Best regards.

    Thread Starter robintalbot

    (@robintalbot)

    WOW !!!! Thanks a lot, quick and good answer.

    For others how would like to know, I made this as my equation as I wanted fieldname2 to be at least 100 and fieldname8 at least 10:

    MAX(fieldname2,100) * 0.03 * fieldname6 * MAX(fieldname8,10)

    Plugin Author codepeople

    (@codepeople)

    Hello @robintalbot

    Perfect, thank you very much for sharing your solution.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Simple conditionnel rule’ is closed to new replies.