2 Replies Latest reply on Mar 27, 2011 1:27 PM by veditor78

    Calculating if deposit should be percentage or fixed amount

    veditor78

      I know absolute zero about Javascript and have never been very good at any type of programming. I am hoping that someone on here can provide me with what I think is fairly simple code. What I need is to determine wether a deposit for my services should be a percentage or a fixed dollar amount.

       

      My deposit rules are 15% or $150, whichever is greater. The fields I have are input as 'Fee' and output as 'Deposit'.

       

      My sincere thanks in advance to anyone who can give me the script. If you could include comments so I can learn a little I would appreciate it.

       

      Thanks!

       

      Josh