Add a default choice for lookup select box in catalog form

Joshuu
Kilo Sage

Hi All,

 

I have a variable on catalog form called 'Application' which is of type 'lookup select box'. And have another variable as 'role' which is also a look up select box. So the roles will be shown in the drop down based on the application which was selected. I have added the below line in the reference qualifier of Roles variable.

javascript: "u_application=" + current.variables.add_application;

 

Now the requirement is to add a new choice 'Other' commonly irrespective of the application selected.

 

I have added a new record as Other in the lookup select box table also tried adding in the variable default value. but it is not working. Could you please help me here.

 

Thank you.

1 ACCEPTED SOLUTION

Voona Rohila
Kilo Patron
Kilo Patron

Hi @Joshuu 

Add or condition to the below query which return the other record.

Replace with the correct sysid value of other record.

javascript: "u_application=" + current.variables.add_application+"^ORsys_id=place_sysid_here";

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

2 REPLIES 2

Voona Rohila
Kilo Patron
Kilo Patron

Hi @Joshuu 

Add or condition to the below query which return the other record.

Replace with the correct sysid value of other record.

javascript: "u_application=" + current.variables.add_application+"^ORsys_id=place_sysid_here";

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hi @Voona Rohila ,

 

It is working as expected. Thank you very much.