Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

How to add static option on Lookup Select Box catalog item variable?

KS86
Tera Contributor

Hi,

I have one requirement.

 

I have three catalog form questions (Q1, Q2, Q3) referencing the same table. Q2 options depend on Q1, and Q3 options depend on Q2 using logic in a Script Include. I need to add a static option to Q3 regardless of the dynamic population. g_form.addOption() isn’t working. How can I achieve this?

8 REPLIES 8

Ankur Bawiskar
Tera Patron

@KS86 

then in the advanced ref qualifier of Q3, let it bring the options based on Q2 you can include your static option using OR condition 

Something like this

javascript:'Your ExistingReferenceQualifier' + '^ORvalue=yourChoiceValue';

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@KS86 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

I did that, still no luck.

@KS86 

share your scripts etc along with screenshots.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader