Need to populate message on change form upto resolved state

MK21
Tera Contributor

Hi All,

 

I have a requirement in the change request form, whenever a change request is opened in the respective state you need to populate the Mess in Please fill in assign on how to achieve this can anyone provide the script or any method

 

example if I open the schedule state change it will display the Please fill the assigned to 

 

Please help to achieve this .

6 REPLIES 6

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MK21 

 

You can use the onload client script , and 

 

if assigned_to == empty

alert"Please fill AssignedTo"

esle 

don't show.

 

or best is make the assign to Field mandatory and this message will appear when ever assign to is empty and you want to save the record.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

customer is asking to be removed assigned to is mandatory and they want Display message in every state of chnage

Hi @MK21 

 

That is a wrong practice. To show message you need to build script and maintain too, and you are SN expert must guide customer what is good and what is bad. Making mandatory is best solution else, as I client script or even UI Policy you can use buddy.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

You can simply create a onload client script with a field message as below

if(assigned_to != ''){
g_form.showFieldMsg('assigned_to','Make sure to update the assgined to....','info'); 
}

☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect