Service catalogue item form fill auto populate

Vikasgc
Tera Contributor

In the service catalog form there will be three fields

1. Domain-multiple choice

2.application name-reference variable (cmdb_ci_business_app)

3.security group name-single line text

By using this one hear I have a one requirement if user selects domain the domain value is populated as a prefix in the security group name

If the user select application name then it takes application number in the backend table and post populate after the domain prefix

Example security group name = domain_applicatioNumber

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Vikasgc 

You need to write the catalog client script for the same.

setValue('domain',+ 'grp.name');

 

syntax may be wrong.

 

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

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

Here I need 

If the user select domain it need to populate one domain the user selects and also if user self  application name in then it goes to back-end fetch data of application number then it set second prefix

 

Like 

Domain_applicationNumber

You can do mate, 

('portfolio='+g_form.getValue('portfolio'));

 

alert('u_choice_1='+g_form.getValue('u_choice_1'));

 

Follow like this.

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

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