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.

Special experience with Safecracker

December 30, 2011 4:01am

Subscribe [1]
  • #1 / Dec 30, 2011 4:01am

    misc

    54 posts

    Dear EE support team

    I’ve made the following experience with Safecracker:

    In my Safecracker form, I have the following two hidden fields.

    <input type="hidden" name="reg_club" id="reg_club" value="{exp:member:custom_profile_data}{club}{/exp:member:custom_profile_data}" />
    <input type="hidden" name="reg_club_id" id="reg_club_id" value="{exp:member:custom_profile_data}{club_id}{/exp:member:custom_profile_data}" />

    But both fields reg_club and reg_club_id get the same value, the value of club_id.

    As the fields location and club in the profile_data have the same value I tried this:

    <input type="hidden" name="reg_club" id="reg_club" value="{exp:member:custom_profile_data}{location}{/exp:member:custom_profile_data}" />
    <input type="hidden" name="reg_club_id" id="reg_club_id" value="{exp:member:custom_profile_data}{club_id}{/exp:member:custom_profile_data}" />

    And now, it works fine. But I can’t imagine where the problem is ...

    Thanks for your help.

    MISC

  • #2 / Dec 30, 2011 3:11pm

    Dan Decker

    7338 posts

    Hi misc,

    I’m glad you have found a bit of a workaround, but I would like to help you get to the bottom of this. Can you tell me the version of ExpressionEngine that you are using? I need to try and replicate this.

    Thanks!

  • #3 / Jan 01, 2012 8:10am

    misc

    54 posts

    Thank you, Dan, it’s v2.3.1 - Build: date 20111017

  • #4 / Jan 02, 2012 1:36pm

    Dan Decker

    7338 posts

    Hi Misc,

    I used you code as closely as possible and wasn’t able to replicate what you are experiencing. I have a couple of more questions for you. Are you using any add-ons, particularly field types? Can you post your complete SafeCracker template here so that we can get a look at everything that is going on?

    Thanks!

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

ExpressionEngine News!

#eecms, #events, #releases