Validation Rule to non-Persistable Entity

0
Hi! I need to set a validation to a input that will receive Money value with ‘R$’ this parameter is within a non-persistable entity. How can I check this validation? ^[R][$] [0-9]+(\.[0-9]{1,2})?$ Best Regards.
asked
1 answers
2

It doesn’t matter: non-persistent or persistent. You can use the function isMatch() with the value and the regex. Read more here: https://docs.mendix.com/refguide/string-function-calls

Something like this:

isMatch($R/YourStringAttribute, '^[0-9]+(\.[0-9]{1,2})?$')

// returns true (if match) or false (if no match)

 

answered