Display field options based on other field values in the portal

ss123
Tera Contributor

Hi!

 

Would like to know how can we display options based on other field value in the Portal. Note that these 2 fields are reference from the same table.

 

Global Practice Group [Reference table: u_practice_group]

AOL [Reference table: u_practice_group]

 

For example:

Global Practice Group = Option A

AOL options should be = Option A1 , Option A2, Option A3

If

Global Practice Group = Option B

AOL options should be = Option B1 , Option B2, Option B3

 

Hope you can advise. Thanks.

2 REPLIES 2

AnubhavRitolia
Mega Sage
Mega Sage

Hi @ss123 

 

As your field value is reference, you can use 'Advance Reference Qualifier' on AOL.

 

There much be some relationship between Global Practice Group and AOL field. Assuming there is a reference field 'group' referring to Global Practice Group. So you want to display all options on AOL where 'group' is selected value on Global Practice Group. Use below Advance Reference Qualifier for it:

 

javascript: 'group='+current.u_global_practice_group;

 

Field names are based on assumption. Do update based on actual field names in your instance.

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

Karthiga S
Kilo Sage

Hi @ss123 ,

 

Could you please explain exactly where do you want to set the field dependency like RPs/service catalog services?

 

Regards,

Karthiga