Freedom UI: How to validate one field based on another

Hi,

In Freedom UI, I need to validate a text field based on the value of a lookup field.

The first thing I tried was adding a custom validator in the validators block of the text field, using control.model.get(...) to access the lookup field value. However, in Freedom UI, control.model is undefined, so the validator doesn’t work.

What’s the correct way to perform cross-field validation in this case?

Thanks in advance!

Like 0

Like

0 comments
Show all comments