Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to Display Field Message under any field??????????

Divya K1
Tera Guru

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

find_real_file.png

 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

find_real_file.png

3 REPLIES 3

Ankur Bawiskar
Tera Patron

Hi,

So what script change have you performed and what's not working?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

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

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.