How to pass parameters to message rule in edit validate

Hi there, i build a requirement recently to validate phones numbers via regex, my apporach was to pass this regex to the edit validate using a data page the part works.

Im wonder if i can parametrized a error message rule depending on the country and type of phone record, y noticed that you can reference a parameter in a message rule like this

Where {1} is the parameter number defined on the parameter tab

but in the validate rule i was not able to find the way to pass this parameter, i tried using a messagename\.PropertyName, but doesn’t work.

Im wonder if there any way to achieve this in a validate rule.
thanks in advance

Hello @GustavoM4801

The approach you are taking is quite possible with some small adjustment. Below is what i have used,

TooOld\t"+.Department+“\t”+.pyID+"

Message Rule

Execution on the UI

If its a static parameter, then you can pass like below,

TooOld\tFinance\tON-123

Hope this helps

Regards

JC

2 Likes

Hi @JayachandraSiddipeta it worked like a charm, thanks for the solution

1 Like