Add new field in RITM and make it visible only for one specific catalog item

MohammedYaseen
Tera Expert

Hi All

How to add a new field in RITM record and make it visible only for a specific catalog item

Also, How to make that new field fetch information present from a particular variable

Thanks

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @MohammedYaseen 

 

These are 2 things

 

Field - We create in Table and it is customization

Variable  - You can create as per catalog item need.

 

Need more details to guide you better buddy.

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

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

Hi Atul,

 

Its a field in RITM form

 

Thanks

Hi @MohammedYaseen 

 

Thanks for update. Before you create a new field please check , which is best table to create so that in future this field can be used as well.

 

What type of field it is? what value it store?

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

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

Harish KM
Kilo Patron
Kilo Patron

Hi @MohammedYaseen What type of field you want to create and to fetch from variable what is the variable type?

You can create a field and with help of UI policy you can show it on the form.

your UI Policy will be on RITM table

cond: item is "your catalog item name"

UI Policy action: select your custom field and set visible to true.

 

now to fetch the variable value there are 2 ways with help of BR and client script.

1. onLoad client script

script:

var answer = g_form.getValue('variables.variablename);

g_form.setValue('fieldname',answer );

 

Business Rule: before insert,update checked

cond: item is your catalog name

script:

current.fieldname = current.variables.variablename;

Regards
Harish