Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
7 subscribers
Views
1943 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
I am searching for a function that only allows user to enter number,”$” and “.”
parisam
over 10 years ago
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
0
Sathya Srinivasan
Appian Employee
over 10 years ago
You can deploy the RegEx plug-in from Forum and write a regex to do your validation.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Abhishek Shadangi
Appian Employee
over 10 years ago
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!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shelzle
over 10 years ago
The expression
cleanwith("a123,.ddd7$", "$.1234567890")
would do the job. But I think using a simple decimal field as Abhishek suggested is a far better solution.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
parisam
over 10 years ago
the field is number(Decimal) but they requested to be able to enter $ and . so i have to make it a text field
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel