I am doing a registration page coding. For that i have so many fields like name, surname, gender, DOB, user name, password, Address1, Address2, city, state, country, zip etc..
In this the Address fields are optional. So my question is, Is it possible to put a button and on click the button only optional fields are visible.
I tried using Scrollview, but i don’t think it is the right option. Can anyone please help me in doing this. Thank you
You can achieve this by using
ScrollViewalso but you have to manage the optional field’svisiblityasVISIBLEorGONE. On clicking the expand button set theviewsvisibility asVISIBLEand by default set their visibility asGONE. You may add animation effect to them for collapsing and expanding effect.