Discussions

Expand all | Collapse all

i have created field(numeric percent field)

  • 1.  i have created field(numeric percent field)

    Posted 06-06-2018 11:25
    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


  • 2.  RE: i have created field(numeric percent field)

    Posted 06-06-2018 11:34
    You can make a new Formula Rich Text field.

    IF([my perecentage field name goes here] > 1, "Percentage must be less than 100%")


  • 3.  RE: i have created field(numeric percent field)

    Posted 06-06-2018 12:34
    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) 


  • 4.  RE: i have created field(numeric percent field)

    Posted 06-06-2018 13:06
    That cannot be done natively.


  • 5.  RE: i have created field(numeric percent field)

    Posted 06-06-2018 13:25
    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");
      }
    });