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.

SafeCracker & Related Entries

November 16, 2012 5:30pm

Subscribe [2]
  • #1 / Nov 16, 2012 5:30pm

    The Design Core

    359 posts

    How can I set a related entry automatically using SafeCracker, instead of making it user selectable?

    I know how to do it with a select field in the SafeCracker form, but I need to assign the related entry automatically using a hidden form field so the user can’t select the related entry themselves.

    Any help is appreciated.

  • #2 / Nov 20, 2012 9:15am

    The Design Core

    359 posts

    Anyone?

  • #3 / Nov 23, 2012 12:55am

    JCDerrick

    57 posts

    You may have already found the solution, but I figured I’d post this just in case. I was working on this tonight and came across your post. I accomplished this by doing the following.

    <input id=“your_field_name” name=“your_field_name” type=“hidden” value=“entry_id_of_related_entry” />

    -John

  • #4 / Nov 23, 2012 8:43am

    The Design Core

    359 posts

    Thanks for the reply.

    I actually had just figured it out the other day.

    Thanks again!

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

ExpressionEngine News!

#eecms, #events, #releases