# How to modify onChange event for the drop-down user-fields on Signup page

**URL:** https://meta.discourse.org/t/how-to-modify-onchange-event-for-the-drop-down-user-fields-on-signup-page/169726
**Category:** Development
**Created:** [November 10, 2020, 1:32pm UTC](https://meta.discourse.org/t/how-to-modify-onchange-event-for-the-drop-down-user-fields-on-signup-page/169726 "2020-11-10T13:32:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Saurabh\_Khandelwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saurabh_khandelwal/32/156332_2.png) [@Saurabh\_Khandelwal](https://meta.discourse.org/u/Saurabh_Khandelwal)
#### Post date: [November 10, 2020, 1:32pm UTC](https://meta.discourse.org/t/how-to-modify-onchange-event-for-the-drop-down-user-fields-on-signup-page/169726/1 "2020-11-10T13:32:37Z")

</div>

Hi All,  
I have added new fields “Country” and “State” on Sign-up page using User Fields functionality.  
Now I want to display/hide State filed based on Selected Country. How to achieve this using Theme component.

In other words I want to control onChange event for “Country” drop-down field.

Thank you.
