Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What is the best way to Hide/Show Form Fields Based on User Selection from a Dropdown?

DannyS-OracleJun 27 2016 — edited Jun 27 2016

Hi guys, I am still fairly new to Apex and learning here. I hope someone can help me to solve this problem:

I have a form where the user can specify the total number of visitors (min. 2 people, max. 5 people):

Screen Shot 2016-06-27 at 3.18.18 PM.png

If the user select a number between 3 to 5 in the Number of Visitors dropdown, the "Next Guest's Name" text field and radio group will appear per guest. If the user select only 2, all of the Next Guest fields will disappear.

I know that we can specify dynamic action for each field item one by one, but are there alternative ways to do it? It seems very tedious and repetitive to create the dynamic actions if we have lots of field items for each guest (e.g. if I want to add guest's email, phone, title, etc for each guest)?

P.S. I am using Apex v.5

Danny

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2016
Added on Jun 27 2016
1 comment
987 views