cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Setting a field in mdf object mandatory with onchange rule in UI

vickyagio
Explorer
0 Kudos
1,674

Hello Experts,

I have created a UI for business unit object and an on changed rule has been created so that when a field takes a specific value, some other fields become mandatory. The rule runs correctly but the problem is created when accidentally we choose the value that makes the other fields mandatory. When we change the value of the field from the one that makes the others mandatory to another value, the fields remain mandatory and the user cannot save the changes.

Have you ever face this issue? How can we fix it?

Thank you in advance

Accepted Solutions (1)

Accepted Solutions (1)

nmanghnani
Product and Topic Expert
Product and Topic Expert
0 Kudos

Add an else condition to your rule, which makes the field non-mandatory otherwise. Test the rule by toggling the values and observe whether the property changes.

Answers (2)

Answers (2)

MuhammadAbrar26
Discoverer
0 Kudos

hello vickyagio,  

we've got the similar requirement, can you please share the business rule, it will help us to quickly implement the solution. 

thanks

vickyagio
Explorer
0 Kudos

nikita_manghnani thank you very much! It worked!