Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

How to make fields disappear after making them appear

Avatar

Level 1

I've got a drop-down list with a question like this:  Q) how many people did you interview?  and you can select a number that corresponds to the number of people you interviewed.  I've got the fields appearing without any problems, so if I select 2, I get two text fields to appear asking for the names of the people you interviewed.

My problem is once I select a number, lets say I select 4 by mistake but intended to select 3, I get 4 text fields appearing.  However if I go back and select 3, which is the number of fields I wanted, I still have 4 fields showing.  How do I get the number of fields I select be the only number of fields to appear?

0 Replies