The CreatorCon Call for Content is officially open! Get started here.

Display helpText Dynamically

SHALIKAS
Tera Guru

I have 2 fields Select server having options as Application, database and infrastructure.

There is another field called Name.

The name field should only display helptext if application or database is selected.

Also the helptext is having a link in it. How to achieve this

1 ACCEPTED SOLUTION

Juhi Poddar
Kilo Patron
Kilo Patron

Hello @SHALIKAS 

Unfortunately, displaying help text dynamically is not possible.

Instead, we can use g_form.showFieldMsg() to achieve the desired result.

Refer the post from another thread: How to change dynamically the help text of a variable on a portal form?

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

 

View solution in original post

9 REPLIES 9

Mark Manders
Mega Patron

You can't dynamically show help text.

You can, however, use fieldmessages to show one message if value in other field is x and another one if it's y. 

Both UI policies and Client scripts can help you show the field messages.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Juhi Poddar
Kilo Patron
Kilo Patron

Hello @SHALIKAS 

Unfortunately, displaying help text dynamically is not possible.

Instead, we can use g_form.showFieldMsg() to achieve the desired result.

Refer the post from another thread: How to change dynamically the help text of a variable on a portal form?

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar

 

and how to add hyperlink?

@SHALIKAS 

  • You cannot populate link using g_form.showfieldmsg().
  • The g_form.showFieldMsg() method is primarily used to display messages (such as error, warning, or informational messages) below a field.

Hope this helps!

 

"If you found my answer helpful, please like and mark it as an "accepted solution". It helps future readers to locate the solution easily and supports the community!"

 

Thank You
Juhi Poddar