3 Replies Latest reply on Jun 7, 2011 6:12 AM by khilt

    Validating amount entered in field before advancing to next field


      I'm creating a simple travel expense sheet.  In one section, the user must enter the cost of his meal and the tip left.  The tip cannot exceed 20% of the meal cost.  I need the form to check the tip entered to make sure it is not more than the maximum.  If it does exceed 20% of the meal, I would like to change the amount of the tip to the maximum allowed and display a message to the user know it was changed. I basically know nothing about JavaScript programming.

      I would greatly appreciate any help anyone can offer.  I also need to know exactly where to place the script -- in the field validation section or as an action like "On Blur".