Forum Discussion

venkyeshavar's avatar
venkyeshavar
Qrew Trainee
7 years ago

i have created field(numeric percent field)

i have created field(numeric percent field) if i enter more then 100 in that field,i want show error message how to do this can help me
  • You can make a new Formula Rich Text field.

    IF([my perecentage field name goes here] > 1, "Percentage must be less than 100%")
  • i enter more then 100 in one numeric percentage field,here error message is showing in rich text field. i want show error message in same field(where i enter more then 100 that field) 
  • This is the essential code:

    $("#_fid_6").on("change", function() {
      if (_fid_6.value > 100) {
        alert("Please enter a value less than 100");
      } else if (_fid_6.value < 0) {
        alert("Please enter a value greater than 0");
      }
    });