Question

Required Field with Conditions Using Client Code

Hi,



I was wondering how can we conditionally set a specific field to become required in client code? The condition must consider on whether the value in other field is greater than or equal to 20, then the specific field is required.

 

I had tried to implement it using business rules, but I found that business rule can only consider whether it is filled / not filled in OR equal / not equal. It does not have the option to check greater than or equal to a specific value.

 

So my attempt was to try using client code to check whether the value is greater than 20, and set the specific field to become required.

 

Any help here is much appreciated!

 

Thanks

Like 1

Like

2 comments
Best reply

To accomplish this you can add a validator and conditionally enable or disable the validator. See here https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

Ryan

To accomplish this you can add a validator and conditionally enable or disable the validator. See here https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platfor…

Ryan

Okay, thanks for the help Ryan! I managed to do it already.

Show all comments