Is it possible to display only one field option to users in the US location.

Ria
Tera Contributor

Is it possible to display only one field option to users in the US location, while making all other options visible to users in other locations?
For example, only the wireless option should be visible to the US location users.

 

 

15 REPLIES 15

Ria
Tera Contributor

@Robert H I compared it with your screenshot, and everything looks identical.

Hello @Ria ,

 

The solution implemented as shown in my screen shots is working fine on my end, so there must be some other configuration on your instance that is interfering with it.

Without access to your actual instance I can only suggest that you open a Now Support case. Someone from technical support needs to have a look at it.

 

Regards,

Robert

Ria
Tera Contributor

Hi @Robert H 

 

For locations in the US, only the wireless option should be displayed, while for other locations, only the wired option should be shown. Can this be implemented using catalog UI policy?

 

Regards,

Riya Jain

Hello @Ria ,

 

Yes, the solution that I provided in this post on 2025-03-28 removes the wired option for the US location, and adds it for all other locations, using a Catalog UI Policy. All you need to do is to add similar code for the wireless option:

 

Execute if true:

g_form.removeOption('type', 'wired');
g_form.addOption('type', 'wireless');

 

Execute if false:

g_form.removeOption('type', 'wireless');
g_form.addOption('type', 'wired');

 

Regards,

Robert

Ria
Tera Contributor

Hi @Robert H 

 

After doing the above-mentioned changes, type field options are not visible.

RiyaJain_0-1744137029310.png