I am attempting to edit the UI Macro 'com_glideapp_servicecatalog_veditor'

nmartinez
Kilo Contributor

I am attempting to edit the UI Macro 'com_glideapp_servicecatalog_veditor' which is used for the UI Formatters on 'sc_req_item' and 'sc_task'. Specifically I need to control when/how specific catalog variables are displayed based on custom criteria.

At first glance, the UI Macro seems simple enough; however I would have expected a loop or something that would output each variable.

I am trying to get a better understanding of what this macro is doing, and how I can modify the behavior.

Has anyone worked/modified this functionality before?

3 REPLIES 3

manikorada
ServiceNow Employee
ServiceNow Employee

Nick,



You can have UI policies/ Client scripts which will run on your desired situation and hide the fields which you want to show.


Also, the code which displays the variables is in the base code of Service Now which customers don't have access to.


Thank you Mani.



Unfortunately I cannot use client-side solutions such as Client Scripts and UI Policies due to the customer's security restrictions on the fields that be limited. Through my trial and error, I also suspected what I am trying to do is base code 'com.glideapp.servicecatalog.VEditor' (not the same as the Macro) seems to be the component that controls what is displayed; however this is something that I cannot access. I was hopefull that they would be another way around.



Thanks for your input though!


himabindu_b02
Kilo Contributor

Hi 

 

Do you found solution by editing macro. Actually we also want to edit macro based on sensitive conditions. And we are not going to use client scripts. Please let me know if you found some solution