Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

one variable selected item are visible on he another variable

Manohararuna
Tera Contributor

Hello Everyone,

 

       I have one requirement. catalog form having the variable app Name  and it's List collector type having the option is if select any option then those all option are visible on Task App Group field and it's multiline Text field type .

 

Please provide me solution

g_form.getValue is not supporting to this 

 

Regards,

Manohararuna

 

7 REPLIES 7

@Manohararuna 

Hope you are doing good.

Did my reply answer 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

@Manohararuna 

 

Hope you are doing good.

Did my reply answer 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

GlideFather
Tera Patron

Hi @Manohararuna 

 

the list collector will be array of sys_id, so you need to parse it one by one and then check if it exists

 

var selectedUsers = g_form.getValue('variable_name'); // Replace with correct name
var userArray = selectedUsers.split(',');

 

g_form.getValue() can be used for example for choice list 

_____
This reply is 100 % GlideFather and 0 % AI