ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Safecrackers, specifying categories across multiple pages

November 24, 2012 8:29pm

Subscribe [1]
  • #1 / Nov 24, 2012 8:29pm

    Simon Job's avatar

    Simon Job

    123 posts

    I have a multiple page Safecracker form, as there are a number of large category groups that need to be chosen from.
    On Page 2, I have a content type select.
    On Page 3, I have a topic select.
    And, on Page 4, I have a number of selects to reference syllabus documents.

    The select fields look like this, that is the categories shown are being filtered by group_id:

    <select name="category[]" id="select_syll-ac" multiple="multiple" class="multiselect">
              {categories group_id="17"}
                      <option value="{category_id}"{selected}>{category_name}</option>
              {/categories}
      </select>

    Currently, only the options selected on Page 4 are making it to the final entry.
    I thought that previously the options selected on page 2 were also being retained.

    preserve_checkboxes=“yes” does not fix the behaviour.

    Given Pages 2, 3 and 4 are all dealing with categories, do I have to add a hidden select of the category groups on Page 2 and 3 to Page 4?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases