Title: 2-Layer Dependency
Last modified: August 31, 2016

---

# 2-Layer Dependency

 *  Resolved [tylerriversadmin](https://wordpress.org/support/users/tylerriversadmin/)
 * (@tylerriversadmin)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/)
 * Hi,
 * I’m having trouble dealing with more than 1 layer of dependency. To give you 
   an example:
 * fieldname1 (radio fields) has 3 options
    product 1 product 2 product 3
 * Each of these has a dependent field with product sizing choices via radio buttons:
   
   fieldname2 (6×6) fieldname3 (6×6) fieldname4 (6×6) (8.5×11) (8.5×11) (8.5×11)(
   9×12) (39×12) (9×12)
 * And each of the sizing choices has a dependent dropdown field with quantity options(
   meaning 9 individual dropdown fields, fieldnames5-14).
 * I would like fieldnames 2, 3 & 4 to have their defaults set to the first value
   so that the customer on our website has a default value checked. The trouble 
   is that I would like only 1 quantity field to appear (whichever field corresponds
   to the product and size that they’ve selected. The way I currently have the form
   set up, 1 quantity field appears each for fieldname2, fieldname3 and fieldname4.
 * Do I have to deselect the default values to make this work? If so, how do I remove
   the default from the radio field without simply changing the default to a different
   selection.
 * Thanks in advance for any help.
 * [https://wordpress.org/plugins/calculated-fields-form/](https://wordpress.org/plugins/calculated-fields-form/)

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220028)
 * Hi,
 * Could you send me the link to your website to check the form in action, please?
   because the second layer of dependencies should work as you describe.
 * Best regards.
 *  Thread Starter [tylerriversadmin](https://wordpress.org/support/users/tylerriversadmin/)
 * (@tylerriversadmin)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220030)
 * Sure.
 * [http://72.41.28.254/wordpress/products/banners-signs/](http://72.41.28.254/wordpress/products/banners-signs/)
 * Check the form near the top of the “Window Signage” tab. There is another, simpler
   form on the first tab that is working as intended.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220050)
 * Hi,
 * I’ve checked your form, and the dependencies are working as they were defined.
   Could you describe how I should select the fields, and how do you think they 
   should be displayed, please?
 * Best regards.
 *  Thread Starter [tylerriversadmin](https://wordpress.org/support/users/tylerriversadmin/)
 * (@tylerriversadmin)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220052)
 * Perhaps I’m just setting up the fields incorrectly, but I would like to be able
   to have a daisy-chain of selections. I’m not sure I can reliably describe the
   technicalities of the settings, but perhaps I can give you the use-case:
 * In the form on the site that you looked at you’ll notice there are multiple Quantity
   fields, where I’d like only 1 of them to have been visible. The Customer would
   select the product they want, then the size that they want, and then the quantity.
   Right now they go through that series of selections, but they always end up with
   at least 5 different quantity fields, rather than the that 1 corresponds to their
   selection.
 * In terms of the fields, right now that means that the chain of dependency is 
   as follows:
    Product Radio Buttons > Size Options > Quantity
 * Basically, because I have selected a default size option for each product, I’m
   currently seeing 5 Quantity fields (one for each of the default sizes of the 
   products).
 * My apologies if what I’m trying to get across is unclear.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220063)
 * Hi,
 * Could you create a ticket through my private support page with the access to 
   your WordPress to check the form’s structure in detail, please?
 * [http://cff.dwbooster.com/contact-us](http://cff.dwbooster.com/contact-us)
 * Best regards.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220106)
 * Hi,
 * I’ve continued analyzing and checking the dependencies in your form, and have
   published an update of the plugin that modifies the process to manage the dependencies
   between the fields.
 * Please, install the latest update of the plugin, and deactivate the cache of 
   the javascript files:
 * 1. Go to the settings page of the plugin, through the menu option: “Settings/
   Calculated Fields Form”
 * 2. Untick the checkbox: “Activate Javascript Cache”
 * 3. And press the “Update” button.
 * Best regards.
 *  Thread Starter [tylerriversadmin](https://wordpress.org/support/users/tylerriversadmin/)
 * (@tylerriversadmin)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220147)
 * It’s working perfectly, thank you so much! Let me know if you still want me to
   create a ticket just for your records.
 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220148)
 * Hi,
 * Not really, that’s not necessary. Thank you very much.
 * Best regards.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘2-Layer Dependency’ is closed to new replies.

 * ![](https://ps.w.org/calculated-fields-form/assets/icon-256x256.jpg?rev=1734377)
 * [Calculated Fields Form](https://wordpress.org/plugins/calculated-fields-form/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/calculated-fields-form/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/calculated-fields-form/)
 * [Active Topics](https://wordpress.org/support/plugin/calculated-fields-form/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/calculated-fields-form/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/calculated-fields-form/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [codepeople](https://wordpress.org/support/users/codepeople/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/2-layer-dependency/#post-7220148)
 * Status: resolved