How to show 'Resolution notes' under 'Compose' in workspace?

Guruvendra J
Tera Contributor

I got a requirement to show 'Resolution notes' under 'Compose' in workspace. When agent clicks 'Resolve' button 'Resolution notes' should be mandatory.

I added 'Resolution notes' in same section of 'Comments' and 'Work notes'. 'Resolution notes' is appearing in between 'Comments' and 'Work notes' in form layout but Compose is showing only 'Comments' and 'Work notes'. Please find attachments.

Please suggest me how to achieve this requirement.

Thank you in advance.

Resolution Notes_1.png

Resolution Notes_2.png

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Guruvendra J 

 

Seems it will not the work the way you and me tried. As it is workspace, so check from UI builder is any trick there. But question is mate, why you want to make change?

*************************************************************************************************************
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]

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

Guruvendra J
Tera Contributor

Hi Atul,

When agent clicks 'Resolve' UI action, system should check 'Resolution notes'. If 'Resolution notes' is empty, it should show 'Resolution notes' field & an error message/ field message.
To make life of agents easy, the client requested to show 'Resolution notes' under compose besides to 'Work notes'. 

Alternate solution is to scroll control to the mandatory field. I tried with below methods in workspace but no luck.

g_form.showFieldMsg('close_notes', 'Resolution notes are required.', 'error', true); //it works only on onLoad client script.

g_form.setMandatory('close_notes', true);
g_form.getControl('close_notes').focus();       //Not setting focus to the field
 
g_form.setMandatory('close_notes', true);
g_form.getControl('close_notes').scrollIntoView(); // it does not wait, setting state to 'Resolved'
  
Any other thoughts would be highly appreciated.
Thanks in advance.
Resolution Notes_3.png

 

Hi @Guruvendra J 

 

Agree with you , but some time we need to use the tool it has been designed, sorry I am not coder so cant help on coding. 

 

May be log a Now Support case to get inputs. 

*************************************************************************************************************
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]

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