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.

Help Text below variable on catalog item form

Rutuja K
Giga Guru

I want to add help text below variable on catalog item form which cannot be closed by user. I don't want close sign next to the text. I tried using help text but it is showing close button.

When I do same in PDI, it works as expected.

 

Show Help= True

Always expand= True

Help Text= Help Text Message.

 

RutujaK_0-1685056233925.png

Can you please help me with it.

 

Thank You!

Rutuja K

 

1 ACCEPTED SOLUTION

Rutuja K
Giga Guru

1. Create a widget 

HTML body :

<div>
<p>{{::data.msg1}}</p>

</div>

 

Server Script: 

(function() {
    data.msg1 = gs.getMessage('Help Text Message');
})();

 

2. Create Custom With Label type variable.

Add above widget in this variable.

View solution in original post

3 REPLIES 3

Zack Hilacan1
Mega Sage

You can create a Catalog Client Script onLoad/onChange, and use 

 

g_form.showFieldMessage('number','Help Text Message','info');

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Regards

 

Hi Zack, thank you for the response.

I tried that as well, but the message comes below single line text box number field. I want to show help text above input box.

 

Rutuja K
Giga Guru

1. Create a widget 

HTML body :

<div>
<p>{{::data.msg1}}</p>

</div>

 

Server Script: 

(function() {
    data.msg1 = gs.getMessage('Help Text Message');
})();

 

2. Create Custom With Label type variable.

Add above widget in this variable.