Service catalogue 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

1 ACCEPTED SOLUTION

Sujatha V M
Kilo Patron
Kilo Patron

@Vikasgc : Please refer the below link or Create onChange client script as below, 

 

For Multiple Choice : https://www.servicenow.com/community/incident-management-forum/how-to-get-display-value-of-choices-i...

 

For Select Box type variable, 

 

SujathaVM_0-1712830611378.png

 

Result : 

SujathaVM_1-1712830664193.png

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

View solution in original post

2 REPLIES 2

Sujatha V M
Kilo Patron
Kilo Patron

@Vikasgc : Please refer the below link or Create onChange client script as below, 

 

For Multiple Choice : https://www.servicenow.com/community/incident-management-forum/how-to-get-display-value-of-choices-i...

 

For Select Box type variable, 

 

SujathaVM_0-1712830611378.png

 

Result : 

SujathaVM_1-1712830664193.png

 

Please mark this as helpful and accept it as a solution if this resolves your query.

Thanks,

Sujatha V.M.

 

 

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.

@Sujatha V M 

In the above application name there will be one more multiple radio buttons is there one is application name and other one is team name and other name is infrastructure name if user clicks application name radio button then it shows application field then it takes application name if user select a team radio button then it need to take team name.