I understand that child-categories will not show in a form if the Parent-Categories are excluded (is this correct?). The problem in showing parent-cat and its sub-cats is that my users may click the parent, whereas I need them to chose from the subs. See attached image .
So I need to hide, or ‘mask’ the parent – perhaps just adding a white label on top of the parent area so it is not visible to the users? Or maybe just changing the parent text colour to white (and its checkbox to white as well) so it is simply not visible at the frontend?





June 9, 2012 at 9:25 pm
You can do this by adding one additional field. So you'll have two fields set up like this:
Field 1 (Parent categories)
- Dropdown field
- Check the "Admin only" box
- In the post settings, select your category and check the "exclude categories" box. Exclude all but the parent category you'd like
- Go back the the form builder page and select that category as the default option
Field 2 (Child categories)
- you can leave as a checkbox if that's what you'd like
- add conditional logic to show if field one is equal to your parent category
- in the post settings, exclude any categories you'd like
June 10, 2012 at 2:18 am
Excellent! Frontend looks great - but some fields vanished from the backend as I was creating this. See: http://screencast.com/t/yObWbuSRT6dJ
The frontend is good - but better I check the backend, just in case?
June 11, 2012 at 9:55 am
I'll look into this and get back to you. Thanks for the detailed information.
June 16, 2012 at 1:35 am
Thank you; looking for your advice.
July 6, 2012 at 6:45 am
Thank you; will be looking forward for your advice.
September 12, 2012 at 3:40 pm
Hello,
is it working when the child uses CHECKBOXES? I tried the following
1) Parent dropdown, Child dropown: Works perfectly, the parent is not shown and the child shows only what it should ("child" options)
2) Parent dropdown, Child checkboxes: It does not work, the Child appears empty.
Could you please let me know if you effectively tried to use checkboxes for the child category?
thanks
Ramiro
September 14, 2012 at 3:50 pm
Okay, I think we got a handle on this. At least I was able to replicate what @ramirocastro experienced when following Steph's instructions above--I could get the child categories to display if I used a dropdown field for them but not with checkboxes.
To get the child categories to show up without the parent categories being displayed, you can follow these instructions:
Form Builder Page
-Add a "Data From Entries" field type into your form (this will be your "parent categories: field)
-in the field options for this field, set it to "Import Data from" "-Use a Category/Taxonomy-"
-if you don't want users to see this, also set it as an admin only field. (see screenshot 1)
-Add a second Data From Entries field into your form (this will be the child category checkboxes)
-in the field options for this field, set it to "Import Data from" "-Use a Category/Taxonomy-"
-set the "display as" option to "checkboxes" (screenshot 2)
Create Posts Settings
On your create posts settings page, you need to tell formidable to populate your new fields with your categories.
-Click "Add" on Taxonomies/Categories and populate your parent category field with "category"
-exclude all the child categories
-Click "Add" on Taxonomies/Categories and populate your Child category field with "category"
-exclude all the parent categories (and child categories) you don't want to show in your form.
(see screenshot 3)
The end result should be a list of all the child categories as checkboxes in your form.
Attachments:



September 14, 2012 at 5:51 pm
B_r_i_l_l_i_a_n_t . Thank you very much Steve, I followed your steps and now I can hide the parent category for checkboxes, really useful for my forms.
Thanks, Ramiro
Topic closed.