Validate $_PARAM server-side (NodeJS)

Hello,

I need help with validating $_PARAM server-side. This Server Action is attached to a page, e.g.:

Route to such page is like /phone-number/:phone_number

For validation I did this, but it's not working (validation is being ignored):

I also don't know how to use Validate Data step:

And I don't know if any of the above options are the best way to validate this $_PARAM data, because then I want to present a pretty error message or use a Redirect step, and I'm not sure if the above options allow me that kind of fine-grained control or if they just blindly throw some JSON error (which isn't user-friendly). I could use some Condition step, but using the built-in validators for digits, etc. would be better.

Just add the PARAM as an expression and apply the validation rules you need there:

1 Like

The required validation does not work for numeric values if added directly in the Input area but Min/Max works the last time I tested this 2 days ago but it works for strings.