how to set placeholder text in planning fields on change in workspace

Dan Gripping
Tera Expert

Hi

I have tried to add placeholder text to Planning fields in Change on workspace (Justification, Implementation plan, Risk and impact analysis, backout plan and test plan) 
I have written a client script, and it works in normal ui (backend) but not in workspace. 

DanGripping_0-1704889038227.png

according to SN it should work when you set ui type to All.

Does anyone have an idea?

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Dan Gripping 

 

https://www.servicenow.com/community/now-platform-forum/how-to-add-ghost-texts-on-a-placeholder/m-p/...

 

https://www.servicenow.com/community/developer-forum/shadow-text-for-servicenow-forms/m-p/2176142

 

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

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

saha_namrata92
Tera Contributor

Hi,

Did you get any solution for the same in workspace view?

 

Thanks,

Hi @saha_namrata92  

 

No solution yet.

As soon I get a solution I will post it here.

 

 

 

 

Dan Gripping
Tera Expert

The solution for placeholder text on Planning fields in Change request on Workspace is

 

Create  onload client script

and use g_form.setFieldPlaceholder

like this:

g_form.setFieldPlaceholder('justification', 'Short description of the reason for this Change!');