Service Portal adding text to form

Ian46
Tera Contributor

Hi,

Is there anyway too add an annotation to the top of a field or below a section header in Service Portal? I need the yellow part to be displayed. I am using a showFieldMsg client script but that always places the text underneath the field box.

find_real_file.png

Thanks Ian

1 ACCEPTED SOLUTION
10 REPLIES 10

Business Rule suggested by @Mike Patel is display business rule which will assign a value to g_scratchpad variable. This variable can be used on any of the client script (In your case On Load). This should help you.

 

Please mark my answer correct/helpful , If it helped you.

I appreciate the advice. I forgot about the display option for BR was possible. 

Archana Singh1
Tera Expert

Hi Ian,

If you are using variable on the form, then could you please use Show Help checkbox as shown below:

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

 

Thanks,

Archana

Hi Archana,

The Help box does not appear in the Service portal it seems. The hint is not suitable either.

Thanks Ian

Rishabh Jha
Mega Guru

Hi Ian,

You can either do some css hacks to try and place the field message below your field label, or, a cleaner way would be to try using:

g_form.addDecoration('your_field_name', 'icon-alert', 'Please complete this section and provide....');

This should add an alert icon against your field, indicating that the users have to take certain action, and the message would be displayed on hovering on the icon. So it'll also save you some real estate on the UI, that'd be otherwise taken up by displaying a long message all the time.

Thanks & Regards,

Rishabh Jha

Aavenir (https://www.aavenir.com)