How to place a variable in the form view of RITM

SamiranD
Tera Contributor

I want to place a variable in the form view of RITM, how to do that?

1 ACCEPTED SOLUTION

@SamiranD 

This link will help you as this is a workaround and not a direct way

How to show Catalog Variables on RITM Lists (https://www.servicenow.com/community/now-platform-articles/article-19-how-to-show-catalog-variables-...)

I believe I have answered your question.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

10 REPLIES 10

If i want a variable to be visible in list view? is there any way?

@SamiranD 

This link will help you as this is a workaround and not a direct way

How to show Catalog Variables on RITM Lists (https://www.servicenow.com/community/now-platform-articles/article-19-how-to-show-catalog-variables-...)

I believe I have answered your question.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

@SAMIRAN
Yes, you can try by creating on load client script and mention the variables that you want to hide on requested item/catalog task.

  var variableName = ['first_name', 'last_name', 'email']; // Please update your variables that you want to hide

    for (var i = 0; i < variableName.length; i++) {

        g_form.setDisplay(variableName[i], false);
    }

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @SamiranD 

I checked in my PDI for the RITM, and the variable editor is already there. Once an item has variables, it will show them. You might be looking at it from the self-service view or another perspective. Please share a screenshot so I can understand the issue better.

 

 

AGLearnNGrow_0-1744184238572.png

 

*************************************************************************************************************
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]

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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @SamiranD  No, the variable editor contains the variables, so you need to use that to manage them.

*************************************************************************************************************
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]

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