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.

Make hidden variables visible in back end

Cat
Mega Guru

Hi All!

 

I have created a number of variables on a catalog item that I've hidden. I want them to not show on the client facing form to submit the request (front end portal), but I want them available to itil users in the back end.

Does anyone know how I can achieve this?

 

Thanks for any help 🙂

 

Cat

2 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Cat 

 

Did you try with catalog UI policy? and that variable on RITM view. and chekc. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Cat
Mega Guru

I was able to do this in the end with a Client Catalog Script and the following:

 

function onLoad() {
   //Type appropriate comment here, and begin script below
    g_form.setMandatory('status', 'false');
    g_form.setMandatory('area_of_support', 'false');
    g_form.setMandatory('billable_checkbox', 'false');
    g_form.setMandatory('developer', 'false');
    g_form.setMandatory('development_priority', 'false');
    g_form.setMandatory('sprint_number', 'false');
    g_form.setMandatory('source_code', 'false');
    g_form.setDisplay('status', 'false');
    g_form.setDisplay('area_of_support', 'false');
    g_form.setDisplay('billable_checkbox', 'false');
    g_form.setDisplay('developer', 'false');
    g_form.setDisplay('development_priority', 'false');
    g_form.setDisplay('sprint_number', 'false');
    g_form.setDisplay('source_code', 'false');
}
 
I deselected the mandatory and hidden fields in the variables themselves, and then selected just Applies on a Catalog Item view - it did exactly what I was looking to do! 
 

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Cat 

 

Did you try with catalog UI policy? and that variable on RITM view. and chekc. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Thank you for your response! I will give that a try

Cat
Mega Guru

I was able to do this in the end with a Client Catalog Script and the following:

 

function onLoad() {
   //Type appropriate comment here, and begin script below
    g_form.setMandatory('status', 'false');
    g_form.setMandatory('area_of_support', 'false');
    g_form.setMandatory('billable_checkbox', 'false');
    g_form.setMandatory('developer', 'false');
    g_form.setMandatory('development_priority', 'false');
    g_form.setMandatory('sprint_number', 'false');
    g_form.setMandatory('source_code', 'false');
    g_form.setDisplay('status', 'false');
    g_form.setDisplay('area_of_support', 'false');
    g_form.setDisplay('billable_checkbox', 'false');
    g_form.setDisplay('developer', 'false');
    g_form.setDisplay('development_priority', 'false');
    g_form.setDisplay('sprint_number', 'false');
    g_form.setDisplay('source_code', 'false');
}
 
I deselected the mandatory and hidden fields in the variables themselves, and then selected just Applies on a Catalog Item view - it did exactly what I was looking to do! 
 

Perfectly mate.. you done it.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************