Currency field on Record Producer
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2019 01:39 PM
Hi,
There is no Currency field for record producer.
What is the Script to hard code '$' on one of the field of the record producer and it will only allow number and decimals.
How do I achieve this use case?
Thank you
Labels:
- Labels:
-
Scripting and Coding
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2019 04:29 AM
Thanks Mark, this worked great, how can we add the comma when the value $1,000.00? That would be a great addition to your current solution.
Thanks in advance.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 08:13 AM
You should mark Mark's answer as correct.
Anyway, here is a good regex expression:
^\$[+-]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\.[0-9]{2})?$