WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
Nesting Fieldsets to allow larger groupings (5 posts)

  1. Edd Hurst
    Member
    Posted 2 years ago #

    I have various different blocks of information I need to list under various different headings, and the best way I could think of doing it was to nest my fieldsets so that the information would look like the following:

    Fieldset1 Open
    - Title of Block
    - Fieldset2 Open
    - - Title of Information
    - - Price
    - Fieldset2 Close
    Fieldset1 Close

    This would allow me to keep everything fairly neatly - and whilst this does display fine, when it comes to saving the information itself, any information in a subsequent Fieldset1 just gets shunted into the initial Fieldset1.

    Is this just me? Have I missed something? Or does the plugin just not really like nested fieldsets? My template code follows:

    [information_fieldset]
    type = fieldset_open
    legend = information Dues
    multiple = true
    multipleButton = true

    [information_ID]
    type = text
    label = ID
    blank = true

    [information_title]
    type = text
    label = Title
    blank = true

    [information_block]
    type = fieldset_open
    legend = Itemised List
    multiple = true
    multipleButton = true

    [information_description]
    type = text
    label = Description
    blank = true

    [information_measurement]
    type = text
    label = Measurement
    blank = true

    [information_price]
    type = text
    label = Price
    blank = true

    [information_block]
    type = fieldset_close

    [information_fieldset]
    type = fieldset_close

  2. afgarcia86
    Member
    Posted 2 years ago #

    I have the same problem and would love a solution.

  3. Zeb
    Member
    Posted 2 years ago #

    Wll, some of your commands does not seem to be functional. För example, I can not see if there is any type = fieldset_close that exist in the plugins code option page unless you have hacked it yourself.

  4. Edd Hurst
    Member
    Posted 2 years ago #

    fieldset_close is perfectly valid.

    I gave up on this as a solution, it seemed that just single fieldsets were buggy enough, without trying to nest them as well. Although it would be nice to see a way of making this work in the future.

  5. Zeb
    Member
    Posted 2 years ago #

    Would be glad if you could share how you would make this work if you solve this issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic