1. pat01
  2. Support
  3. Wednesday, September 19 2018, 08:26 AM
Hi

I have the following situation:

A DropDown field with values 1, 2, 3, 4 and 5.

The numbers stand for the number of children. For each child the following information needs to be collected: Child name, age and preferred toy.

If I select 1 then following fields automatically should be displayed: child_name, child_age and child_toy.

I can do this by using a condition.

If 2 is selected, the three fields should display twice (one fieldset for each child). If I select 3, then the fields should display 3 times and so on.

How can I set up this?
Thank you very much.

Regards
Patrick
Accepted Answer
admin Accepted Answer
Admin
Hi,
yes this is possible:
you need to create following fields:
child_name1, child_age1, child_toy1, child_name2, child_age2, child_toy2, child_name3, child_age3, child_toy3, child_name4, child_age4, child_toy4, child_name5, child_age5, child_toy5

Now you can add following options in your Dropdown field:
1|1
2|2
3|3
4|4
5|5
and following conditions:
1) if equal to custom value 100 then hide fields child_name1, child_age1, child_toy1, child_name2, child_age2.... (Inverse No)
This condition is never met, so it always hide all fields.
2) if greater than custom value 0 then show fields child_name1, child_age1, child_toy1 (Inverse No)
3) if greater than custom value 1 then show fields child_name2, child_age2, child_toy2 (Inverse No)
4) if greater than custom value 2 then show fields child_name3, child_age3, child_toy3 (Inverse No)
5) if greater than custom value 3 then show fields child_name4, child_age4, child_toy4 (Inverse No)
6) if greater than custom value 4 then show fields child_name5, child_age5, child_toy5 (Inverse No)

So for example if I choose "3" then:
- condition 1 then hide all child fields
- condition 2 then show child_name1, child_age1, child_toy1 fields
- condition 3 then show child_name2, child_age2, child_toy2 fields
- condition 4 then show child_name3, child_age3, child_toy3 fields
  1. more than a month ago
  2. Support
  3. # Permalink
pat01 Accepted Answer
Pro
Hi

Great, works perfect! Thank you very much!
  1. more than a month ago
  2. Support
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.