how to restrict data in reference field dynamically

anjali viswanad
Tera Contributor

Hi,

I want to restrict caller filed based on location field value on catalog form.

for example, if I select india location I want only indian users populate in reference filed.

Can anyone help me out.

 

Thanks

7 REPLIES 7

Karan Chhabra6
Mega Sage
Mega Sage

Hi @anjali viswanad ,

 

You need to add an advance reference qualifier on the caller field

KaranChhabra6_1-1689748064707.png

 

 

Replace the variable name (u_location)if it's different:

javascript: 'location.country='+current.variables.u_location;

 

If my answer has helped with your question, please mark it as correct and helpful

 

Thanks!

 

Arun96
Tera Expert

Hi Anjali,

 

You can use a simple reference qualifier to achieve this.
Go to the 'Configure Dictionary' and set the reference qualifier.

Arun96_0-1689748201616.png

 

Regards,
Arun

Please mark this as 'Solution Accepted' , if it helped you.

My requirement is to restrict caller field based on current location selected by using script.

here both are reference fields.

 

anjali viswanad
Tera Contributor

Hi @Karan Chhabra6 

it's not working, when i select location then users are not reflecting in caller field.

Thanks