How to filter select box selection base on another field selected option? Catalog Item Form

Gian1
Tera Contributor

We have catalog item that has the following field 


Look up select box field called Campus - Which references the u_campus field in the table cmn_location 

and

Reference field called Exam Room Location - Which references the cmn_location

 

What we want is when a user Selects a campus for example "City Campus" The exam room location selection should only show the rooms from the city campus and if they change to North Campus the exam room location selections should only show rooms from north campus.

 

I tried to do an onchange script that did not work.

 

Any help will be much appreciated. Thank you

 

 

1 ACCEPTED SOLUTION

Hi @Gian1 

 

Ok got it...

reference qualifier should be highlighted in below screenshot

 

VishalBirajdar7_0-1695180057229.png

 

Actually , colon (:) will get converted here in community text editor.

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

View solution in original post

8 REPLIES 8

Hi @Gian1 ,

 

Kindly remove &colon from the advanced reference qualifier. It should work.

 

Please mark @Vishal Birajdar  answer correct if it helps you resolve ur query.

 

Thanks,

Danish

Hi Danish,

 

Still did not work. It's not refreshing the list. It's still showing all the room location from all campuses.

Hi @Gian1 

 

Ok got it...

reference qualifier should be highlighted in below screenshot

 

VishalBirajdar7_0-1695180057229.png

 

Actually , colon (:) will get converted here in community text editor.

 

Vishal Birajdar
ServiceNow Developer

I know one thing, and that is that I know nothing.
- Socrates

Thanks heaps. This worked