How to Display Field Message under any field??????????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:00 PM
Hi,
On change form, There is a Conflict Status Field, whenever we click on Check Conflicts (ui Action under related links), currently we can see this display message under Conflict Status Field if any conflicts
Now the requirement whenever under conflict tab ---if type is CI Already Scheduled, on change form ---Conflict Status should change to Not conflict and should not display above message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:02 PM
Hi,
So what script change have you performed and what's not working?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:36 PM
We didnt change any script. I see that there is OOB Client Script onload (Notify Conflict)
Populating the message under conflict Status
function onLoad() {
if (g_form.getValue('conflict_status') == 'Conflict')
g_form.showErrorBox('conflict_status', getMessage("Conflicts detected, see the Conflicts section below"));
So, now the client wants whenever under conflict tab ---if type is CI Already Scheduled, on change form ---Conflict Status should change to Not conflict and should not display above message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 10:57 PM
Hi Divya,
I have used this for my requirement, modify it accordingly.
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
if (newValue == 'create') {
g_form.showFieldMsg('group_action', "Personal groups should be created in your Outlook account", 'info', false);
} else if (newValue == "delete") {
g_form.showFieldMsg('group_action', 'Permanently Delete Group', 'info', false);
} else if (newValue == "update") {
g_form.showFieldMsg('group_action', 'Add or remove associate from group, change admins or owners', 'info', false);
}
}
Regards
Suman P.