I am searching for a function that only allows user to enter number,”$” and “.”

I am searching for a function that only allows user to enter number,”$” and “.” I don’t want to use stripwith function because I have to list every character that they could possibility enter. What is the best way to handle this?...

OriginalPostID-82624

OriginalPostID-82624

  Discussion posts and replies are publicly visible

Parents
  • Hi Parisa,

    Hope you are doing well! A better way to handle a dollar amount in the process would be to store the value in a Number (Decimal) type and use the Number Decimal form component to get the user input. The runtime form will do the validation for you. You can label the component as "Salary ($)" to make it intuitive for the user.

    Please let me know if I misunderstood your requirement.

    Thanks!
Reply
  • Hi Parisa,

    Hope you are doing well! A better way to handle a dollar amount in the process would be to store the value in a Number (Decimal) type and use the Number Decimal form component to get the user input. The runtime form will do the validation for you. You can label the component as "Salary ($)" to make it intuitive for the user.

    Please let me know if I misunderstood your requirement.

    Thanks!
Children
No Data