Help text in checkbox variable code not working

JordyZ
Mega Sage

Hi,

 

In a catalog item, I have a checkbox variable. I'd like the checkbox variable to show a help text, however OOB there is a UI policy called Show/Hide Annotations tab, that hides the annotations tab for checkbox variables. I deactivated the UI policy so I can access the Annotations tab and thus turn on help text. However, it still is not displaying my help text at all. So OOB, help text for checkbox variables are not supported. 

 

I found a solution in another post suggesting an onLoad client script, using this code:

g_form.showFieldMsg('field_name','Your help text','info');

It has worked for others, but not for me. Did I configure the client script wrong?

JordyZ_0-1676507646341.png

"re_hire" is the name of the variable.

 

JordyZ_1-1676507795169.png

When I click on "try it" on the catalog item, it doesn't show any help text.

JordyZ_2-1676507885815.png

 

Thanks in advance.

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

For your client script you don't have a table selected and you may have went through the left-hand nav menu to client scripts and created new there. When working with any record...especially catalog items, it's recommended to access the catalog item and then use the appropriate related list at the bottom called "Catalog Client Scripts", from there, it'll auto-fill in a lot of the field values needed to make this work, etc.

AllenAndreas_0-1676511211883.png

 

AllenAndreas_1-1676511231479.png

 


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

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

For your client script you don't have a table selected and you may have went through the left-hand nav menu to client scripts and created new there. When working with any record...especially catalog items, it's recommended to access the catalog item and then use the appropriate related list at the bottom called "Catalog Client Scripts", from there, it'll auto-fill in a lot of the field values needed to make this work, etc.

AllenAndreas_0-1676511211883.png

 

AllenAndreas_1-1676511231479.png

 


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

hakdi
Kilo Contributor

I don't feel that we ought to eliminate the striking styling until we have a superior UX to show the regexp in the structure and assist clients with grasping the necessities here. I get that it feels janky, yet I recollect that it was carried out after clients whining that it was excessively unpretentious. Likewise, considering how I'm as of now doing a colossal refactor of the entire variable structure, I've denoted this as impeded by the refactor to keep away from squandered exertion (as the present moment, we would have to execute this two times: one in VueX application and one in GraphQL application).