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.

Channel Form Relationships Not Saving

January 09, 2014 3:22pm

Subscribe [1]
  • #1 / Jan 09, 2014 3:22pm

    Zac G.

    268 posts

    Hi,

    I have a working Channel Form, but the only thing is that the relationships field is not saving. 

    Here is the code I’m using:

    <select name="related_field" id="field_name">
                    {options:related_field}
                            <option value="{option_value}" >{option_name}</option>
                    {/options:related_field}
    </select>

    Thanks!

  • #2 / Jan 09, 2014 3:26pm

    Zac G.

    268 posts

    Looks like I needed this as the name attribute value.  Weird that’s not documented anywhere I saw?

    <select name="related_field[data][]" id="field_name">
  • #3 / Mar 14, 2014 12:50pm

    Reverie123

    47 posts

    Thank you for this, I have been looking for a solution the whole day for why the relationships couldn’t save via form. This also works for people using older versions of EE with the safecracker form.

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

ExpressionEngine News!

#eecms, #events, #releases