Support » Plugin: Custom Field Template » Nesting Fieldsets to allow larger groupings

  • 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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same problem and would love a solution.

    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.

    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.

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Nesting Fieldsets to allow larger groupings’ is closed to new replies.