onClick Resolve UI action make related tab and also additional tab mandatory

Aryan
Tera Contributor

Hello All,

 

We have an requirement where we have to make related list tab "Outage" and Additional Tab mandatory (where we have check box field) how can i mark this as mandatory when user click on Resolve button.

 

We have to make it mandatory on Onclick.

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

You cannot make an item(field) mandatory on a related list from a parent record.

If it is on the same record but in a different section then you can do it.

 

How do you imagine this working? Please add screenshots if that would explain better.

-Anurag

Shruti Khaire
Kilo Sage

Hello @Aryan ,

 

If your requirement is to make field mandatory when the Resolve button is clicked then you can use the below snippet of code in your UI Action.

 

// Client side onclick function

function goToNew(){
g_form.setMandatory('u_conflict_justification', false);

gsftSubmit(null, g_form.getFormElement(), 'revert_to_new'); // MUST call the 'Action name' set in this UI Action
}

 

Hope it helps, thank you!