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

Allen Andreas
Administrator
Administrator

Hi,

You can create an onLoad client script with the following script to accomplish that:

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

find_real_file.png

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


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

the text has multiple spaces , actually line which is not being considered as string. Thats it what coming as error.

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!

Aman Kumar S
Kilo Patron

Store the string in a variable first, then pass the variable in showmessage function, it should work for you

Best Regards
Aman Kumar