- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 09:27 AM
Form the Service Operation Workspace I am creating a incident.
I want to make mandatory some fields while submitting the incident.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 11:06 PM
Hi,
Are you able to view the fields to be made mandatory on the workspace ?
If not then please add that field on the workspace view of the incident table.
Once visible then you would need to write UI policy to make it mandatory.
Please follow the link below if your UI policy does not work
If my answer has helped with your question, please mark it as helpful and give it a thumbs up!
Regards,
Harshal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2023 02:38 AM
Hello @shyamsunderl198
There are some drawbacks with client script and Ui Policy but you could try the below onLoad client script to achieve your requirement:
Client Script:
function onLoad() {
//Type appropriate comment here, and begin script below
var url = top.location.href;
alert(url);
if (url.indexOf('sow') == 1) {
alert("in if");
g_form.setMandatory('description', true);
}
}
Below is the screenshot
Please mark it as helpful if my answer has helped with your question.
Thank You!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 11:06 PM
Hi,
Are you able to view the fields to be made mandatory on the workspace ?
If not then please add that field on the workspace view of the incident table.
Once visible then you would need to write UI policy to make it mandatory.
Please follow the link below if your UI policy does not work
If my answer has helped with your question, please mark it as helpful and give it a thumbs up!
Regards,
Harshal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2023 02:38 AM
Hello @shyamsunderl198
There are some drawbacks with client script and Ui Policy but you could try the below onLoad client script to achieve your requirement:
Client Script:
function onLoad() {
//Type appropriate comment here, and begin script below
var url = top.location.href;
alert(url);
if (url.indexOf('sow') == 1) {
alert("in if");
g_form.setMandatory('description', true);
}
}
Below is the screenshot
Please mark it as helpful if my answer has helped with your question.
Thank You!!