Conditional mandatory field

Riya17
Giga Contributor

Hi,

I have to make 'justification' mandatory if the 'planned_start_time' is less than 3 hours from the change is requested.  I've tried with business rule, it didn't work.  What is the best way to achieve this.

 

Thanks

Riya

1 ACCEPTED SOLUTION

Same code on form load and Planed Date change

 

Thanks

View solution in original post

22 REPLIES 22

lagravere
Kilo Expert

Hi Riyak

UI policy seems the best manner.

Regards

Supriya Sirse1
Giga Expert

Hi Riya,

 

You can do this with UI Policy. and give the Condition in When to Apply section. actual time is less than 3Hours of Requested Time.

Then give the UI Policy Action for Jusitification Mandatory is True.

find_real_file.png

 

find_real_file.png

 

This may help you. Let me in case of any clarifications.

 

Regards,

Supriya S.

 

Kindly Hit  Helpful, Reply,Mark as Correct Answer if you found useful.

lagravere
Kilo Expert

Re,

If you want enforce the solution for ui forms AND list editing, you have to work with a data policy.It's quite similar with Ui policy but it's fired when you try to save the record (server side vs client side with ui policy).

Regards

PY

Riya17
Giga Contributor

Supriya, lagravere,

 

I've tried UI policy and also Data Policy but none of them worked 😞

Am i missing something?