Multi-Level Relational Checkboxes

I need to create three checkbox sets that are relational. The goal is to list individuals as being part of a primary list set, with a second level list set and third level list set that changes based on what is selected in the primary list set.

Say, I have three checkbox fields, 1 2 and 3. I need to check something in one and have the value list update in field 2, check something in 2 and it changes in 3.

I was trying to set this up using a "categories" table with recursion, but haven't been successful. Can someone recommend some tips to wrap my head around this?

I have attached my sandboxing file.
Checkboxes.fp7
ErootsAsked:
Who is Participating?
 
Will LovingConnect With a Mentor PresidentCommented:
The attached file is almost identical to the previous one except that I've converted CheckBox1 and Checkbox2 back to checkbox fields (you could do the same with Checkbox3 if you want). When you check multiple checkboxes in a field, what FileMaker is doing under the hood is creating a return-separated list of the selected values. And, when a field with multiple return-separate values is a key in a relationship, each of the values acts as a key with the related records showing in aggregate.

So, if you check Primary Category 1 and Primary Category 3, all the Secondary Categories for either Primary value will be listed in the next value list. If functions similarly going from 2 to 3.
Checkboxes-v3.fp7
0
 
Will LovingPresidentCommented:
The attached file does what you are looking for. The problem was that you needed to have a relationship from the selected value in the checkbox to the available child Categories, in other words, from Checkbox1 to ParentCategory. That they acts as the source for the value list to show you what values might be available for CheckBox2. Similarly, you needed another relationship between Checkbox2 and ParentCategory to show the possible values for Checkbox3.

In addition, I created a script and then applied it as a Script Trigger to all three fields. The script simply clears the values in the parent and child fields (Checkbox3 or both Checkbox2 and 3) if the Parent value is changed. That prevents old entries from remaining if the parent value is changed.

Relationship GraphCheckboxes-v2.fp7
0
 
ErootsAuthor Commented:
Is there going to be any way to expand on this concept so I can actually use it as a series of checkboxes, rather than a menu and radio sets?

I figure there will most likely be people that cross into multiple secondary and tertiary categories.

Thanks, the relational diagram makes sense, I figured recursion wasn't the way to go for the interface.
0
 
ErootsAuthor Commented:
this was the baseline I was looking for. I made some tweaks to the scripting and am still working out some conditions (and what to do in find mode) but this works for what I need for now! Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.