Service catalogue item form fill auto populate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 12:33 AM
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
- Labels:
-
Architect
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 05:38 AM
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 08:44 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-10-2024 09:17 AM
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]
****************************************************************************************************************