Add a help text on the form on load

jyoti29208
Giga Expert

Hi All,

I need a label on one of my custom form stating some info as shown in below attached image. 

Please assist

find_real_file.png

1 ACCEPTED SOLUTION

Hi @jyoti29208 

I'm not understanding your reply and it sounds like you know more as to what you're looking for.

It's very unfortunate if that is true as you can easily state all that in your original post.

What you literally asked for in your original post, is what I provided, and went above and beyond to actually replicate it within my own instance to show you a working result.

What I showed has... "multiple spaces". If you're referring to line break, meaning new lines, etc. then please use the appropriate verbiage so we know and then give an example of the exact text, as again, in your original post, you did not say or show that.

If new lines is what you're talking about then you can use this for example:

var string = "For further guidance on the process please <a href='https://url.com'>click here</a> <p>Line 2</p> <p>Line 3</p>";
g_form.addInfoMessage(string);

find_real_file.png

The goal here is for you to take it from here and tweak as needed. Please take it from here.

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

6 REPLIES 6

same issue. The content is not tasking as string

Ankur Bawiskar
Tera Patron
Tera Patron

@jyoti29208 

To show static text why not use Form annotations?

Set up form annotations

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader