- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 05:32 AM - edited 05-15-2023 05:34 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 05:39 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 05:39 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2023 06:00 AM