In a problem record, when we click the Accept Risk button, a popup appears.

Srilatha Vadlam
Tera Contributor

“In a problem record, when we click the Accept Risk button, a popup appears. In that popup, there is a Primary Known Error Article field, and we need to make this field mandatory. On the main form, the same field exists, but it should not be mandatory there. It should only become mandatory when the Accept Risk button is clicked and the popup is displayed.”

SrilathaVadlam_1-1764158556040.png

Thanks in advance for you suggestions

 

1 ACCEPTED SOLUTION

Viraj Hudlikar
Tera Sage
Tera Sage

Hello @Srilatha Vadlam 

 

This can be easily done by placing a Ui Policy check the screenshot which I tried out in PDI. I am not sure how are you trying to make field mandatory earlier best approach will be below one as this modal which opens is in specific view which is stated in Ui Script [ProblemModalUIHelpers] called on line 242.

code:

var ob = new ProblemModalUIHelpers();
	ob.openModal("accept_risk_dialog_form_view", getMessage('Accept Risk'), 900, formValues, "accept_risk");
//where accept_risk_dialog_form_view is view in which modal get open. 

VirajHudlikar_0-1764161995866.png

VirajHudlikar_1-1764162010616.png

VirajHudlikar_2-1764162450379.png

 

If my response has helped you, hit the helpful button, and if your concern is solved, do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

9 REPLIES 9

Shruti
Giga Sage
Giga Sage

Hi

Try to create UI policy on problem table to make field mandatory in pop view.

Select view -> Accept risk dialog form view

Shruti_0-1764162026786.png

 

Viraj Hudlikar
Tera Sage
Tera Sage

Hello @Srilatha Vadlam 

 

This can be easily done by placing a Ui Policy check the screenshot which I tried out in PDI. I am not sure how are you trying to make field mandatory earlier best approach will be below one as this modal which opens is in specific view which is stated in Ui Script [ProblemModalUIHelpers] called on line 242.

code:

var ob = new ProblemModalUIHelpers();
	ob.openModal("accept_risk_dialog_form_view", getMessage('Accept Risk'), 900, formValues, "accept_risk");
//where accept_risk_dialog_form_view is view in which modal get open. 

VirajHudlikar_0-1764161995866.png

VirajHudlikar_1-1764162010616.png

VirajHudlikar_2-1764162450379.png

 

If my response has helped you, hit the helpful button, and if your concern is solved, do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

Hi@ Viraj ,
I tried it, but it is not working for me. Can you guide me step by step  on the form also it is  getting mandatory you can see in screen short

SrilathaVadlam_0-1764226446622.png

 

When we click on the Accept Risk button, the Primary Known Error Article field becomes mandatory both on the form and in the popup.