Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

onLoad client script to display field message on Html Variable type

Trupti Krishnam
Tera Contributor

I need to write an onload client Script on a HTML type variable called 'what would you like to do '

and the message is : -

Which department ? 
Has been identified and secured?
If so, which FY and/or future periods available?

 

i've tried it in the below way 

 g_form.showFieldMsg("u_v_todo ", "Which department?
        Has been identified and secured ?
        If so, which FY and / or future periods available ? );
}
 
it is not working can anyone help please !
1 ACCEPTED SOLUTION

@Trupti Krishnam Create one variable of type "Rich Text Label" and place it after your HTML variable as below..

JSiva_0-1755173138286.png

JSiva_1-1755173171442.png

 

View solution in original post

14 REPLIES 14

RaghavSh
Mega Patron

I can see " missing at end, try :

 

 g_form.showFieldMsg("u_v_todo ""Which department?<br>Has been identified and secured ?<br>If so, which FY and / or future periods available ? ");
}

Raghav
MVP 2023
LinkedIn

Not working

 

@Trupti Krishnam Create one variable of type "Rich Text Label" and place it after your HTML variable as below..

JSiva_0-1755173138286.png

JSiva_1-1755173171442.png

 

@J Siva  i m creating a variable on table  record level there is no rich text type .., is there any alternative