Changing placeholders or adding any info to variables in portal

Prasun Sarkar7
Tera Expert

Hi all just came across a requirement where a placeholder message had to be added in the text field. First thought is to use the client script use g_form.getControl and control.placeholder. It will work in native UI but in portal side this doesn't work as ServiceNow OOTB gives the option to use this fields where putting appropriate message will display the custom message you want to show in the portal as that is a portal widget. 

PrasunSarkar7_1-1795102392329.png

 

PrasunSarkar7_0-1795102372453.png

I hope it helps for someone who is looking for it

 

 

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @Prasun Sarkar7 

 

Either you can use Help text under Annotation tab  (Recommended) as tooltips is not showing in portal  

 

TanushreeMaiti_0-1795106519435.png

 

Or , 

If you have custom widget , You can update  script to get tooltips.

 

Refer :Tooltip in service portal