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.

Hide Question on service portal catalog item variable

Elias10
Mega Contributor

Hi

I am trying to create a Label variable for an order guide and would like to use HTML formatting only.

I have used the Annotation tab Help instructions to define the HTML which works perfectly.

find_real_file.png

The variable also requires a Question which is mandatory and shows up on the portal form

find_real_file.png

Is there a way to hide the Question on the Label field so it does not show up when selecting the catalog item on the service portal or is there a better way of adding formatted text to a catalog item on the service portalfind_real_file.png

 

 

1 ACCEPTED SOLUTION

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You could just empty the question, would that already work 🙂 But dummy workaround, though no need to do any coding, client scripts to hide a label, css override, etc..

You could use the JavaScript Executor to make the Question field not mandatory.

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

View solution in original post

4 REPLIES 4

Mark Roethof
Tera Patron
Tera Patron

Hi there,

You could just empty the question, would that already work 🙂 But dummy workaround, though no need to do any coding, client scripts to hide a label, css override, etc..

You could use the JavaScript Executor to make the Question field not mandatory.

find_real_file.png

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Thanks Mark

This worked as a workaround

 

Cheers

 

Jaspal Singh
Mega Patron
Mega Patron

Hi Elias,

 

In that case you can create

1. Widget named Istransfer & Body HMTL containing your content.

2. Variable of type : Macro with Label & specify a widget in Type Specifications tab of the variable.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Elias10
Mega Contributor

Thanks Mark for you reply

I didnt know this existed, I tried using this command holding down Alt+Ctrl+Shift+J

which worked however when you refresh browser you lose the change