onClick Resolve UI action make related tab and also additional tab mandatory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 08:01 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 08:29 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 08:42 AM
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!