# Constellation UI - Change Sections based on a Dropdown "On-Change" Event

**URL:** <https://forums.pega.com/t/constellation-ui-change-sections-based-on-a-dropdown-on-change-event/8093>\
**Category:** User Experience\
**Tags:** user-experience, constellation, pega-platform\
**Created:** [August 20, 2024, 7:49am UTC](https://forums.pega.com/t/constellation-ui-change-sections-based-on-a-dropdown-on-change-event/8093 "2024-08-20T07:49:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SameeraS](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SameeraS](https://forums.pega.com/u/SameeraS)\
**Post date:** [August 20, 2024, 7:49am UTC](https://forums.pega.com/t/constellation-ui-change-sections-based-on-a-dropdown-on-change-event/8093/1 "2024-08-20T07:49:05Z")

</div>

Hi,

Can you please let me know whether we can change the UI look and feel based on a dropdown selection.

Scenario - I have list of countries and each section to be displayed is different from country to country. Hence, based on the country selection I need to differentiate the UI fields. Also this is inside a data object.

---

<div class="post-metadata">

**Author:** ![Marc\_Alderman](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/marc_alderman/32/23612_2.png) [@Marc\_Alderman](https://forums.pega.com/u/Marc_Alderman)\
**Post date:** [August 20, 2024, 1:33pm UTC](https://forums.pega.com/t/constellation-ui-change-sections-based-on-a-dropdown-on-change-event/8093/2 "2024-08-20T13:33:19Z")

</div>

@SameeraS

Yes, this is possible. When you configure a view in App Studio you can set visibility conditions for fields, or embedded views. This can be either a Custom Condition (Client side evaluation) or a when rule (Server side evaluation). When there is a visibility condition defined in the view the UI will update based on the dropdown selection (assuming the condition uses the field from the dropdown). You do not need to configure any event on on the dropdown itself.

[Configuring forms (pega.com)](https://docs.pega.com/bundle/platform/page/platform/user-experience/configuring-forms.html)

[Configuring dynamic field behavior (pega.com)](https://docs.pega.com/bundle/platform/page/platform/user-experience/dynamic-fields.html)

---

<div class="post-metadata">

**Author:** ![RameshSangili](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/rameshsangili/32/23377_2.png) [@RameshSangili](https://forums.pega.com/u/RameshSangili)\
**Post date:** [August 20, 2024, 3:10pm UTC](https://forums.pega.com/t/constellation-ui-change-sections-based-on-a-dropdown-on-change-event/8093/3 "2024-08-20T15:10:43Z")

</div>

@SameeraS

Yes, this is possible with the help of visibility conditions on the fields (based on countries).

Thanks,

Ramesh

---

<div class="post-metadata">

**Author:** ![SameeraS](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@SameeraS](https://forums.pega.com/u/SameeraS)\
**Post date:** [August 21, 2024, 11:20am UTC](https://forums.pega.com/t/constellation-ui-change-sections-based-on-a-dropdown-on-change-event/8093/4 "2024-08-21T11:20:58Z")

</div>

@Marc Alderman/ @RameshSangili

 ![Add.png](https://pega1.discourse-cdn.com/pega/original/2X/4/49a15642c9adc5d9c876acbc8a28a3ff5d433d10.png)

My use case is, when selected different different countries in “Pay-To Country” dropdown, the view is to be changed. (For each country, we have sub-classes and the entitled fields are added to a section in respective class level.) Also this functionality is running on a Landing Page.

I believe it is not a good practice to overload the view with embedded view as we have 140+ countries hence, 140+ views

---

<div class="post-metadata">

**Author:** ![RameshSangili](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/rameshsangili/32/23377_2.png) [@RameshSangili](https://forums.pega.com/u/RameshSangili)\
**Post date:** [August 21, 2024, 6:11pm UTC](https://forums.pega.com/t/constellation-ui-change-sections-based-on-a-dropdown-on-change-event/8093/5 "2024-08-21T18:11:32Z")

</div>

@SameeraS

140+ views are not advisable for this use case and maintenance challenges . However, you can have a common views and try to add visibility conditions based on the country selection. For example: if you’re supposed to show the field Beneficiary IBAN for UK, Canada, USA then display if the Pay to Country is one of them by adding visibility conditions.
