The CreatorCon Call for Content is officially open! Get started here.

Ui policy not working for LIst field

Brahmi Pandla
Tera Guru

Hi Everyone I have list filed called Territolscope  and  I have 5 choices  like

for example choice1, choice2, choice3, choice4 and Other

 

If I select any one of choice1, chooce2,choice3,choice4, need to display exception filed

Select others need to display Others fileld

 

I written ui policy below

BrahmiPandla_0-1697781390805.png

 

BrahmiPandla_1-1697781593617.pngBrahmiPandla_2-1697781648086.png

 

3 REPLIES 3

Harsh_Deep
Giga Sage
Giga Sage

Hello @Brahmi Pandla ,

 

If it's not working using ui policy then you can achieve it using Client Script.

 

Example - 

if (g_form.getValue('field name').indexOf('value_for_which_you_want_to_hide')>-1) {   
               g_form.setDisplay('field',false);      
       }   

 

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.

Thanks

Suyog Aptikar
Giga Guru

In the ui policy screenshot  I am not seeing magnifier glass,  this is strange as when I am trying same at my end I am seeing magnifier glass, what is this field Territolscope  referring to ?

SuyogAptikar_0-1697783228675.png

For me ui policy action which I tried is working as expected, so I do not see issue with ui policy working but more on what is this field Territolscope  referring to

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.



Best regards

Suyog

AndersBGS
Tera Patron
Tera Patron

Hi @Brahmi Pandla ,

 

And what is your question? Are you facing issues? Can't you make it work? Basic just create two UI Policies: If  choice1, chooce2,choice3,choice4, then display exeption field should be visible. Afterwards create another for if others then others field should be visible.

 

if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders 

 

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/