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 Member Registration Form error messages not displayed or duplicated

September 04, 2012 9:58pm

Subscribe [1]
  • #1 / Sep 04, 2012 9:58pm

    readmetwice

    18 posts

    Using Safecraker member registration form via Profile:Edit addon. Working Fabulously except I am having an issue getting error messages to show up for base Member fields when using regular Member messages or error_handling=“inline”:
    -email
    -email_confirm
    -password
    -password_confirm
    -accept_terms

    The problem is I am getting blanks where the error message should be for the fields above, or at some point got a message for accept terms repeated 4 times. “{exp:profile:register}” works like “{exp:safecracker}” tag

    Code taken from Member Module Templates:

    {exp:profile:register error_handling="inline" return="site/index"}
     
     <table class="tableBorder">
     <tbody>
        <tr>
      
      <td class='tableCellTwo'>div class='defaultBold'><span class="highlight">*</span> {label:member_name}</div></td>
      <td class='tableCellOne'>input type="text" name="member_name" id="member_name" value="{member_name}" maxlength="40" class="input" size="25"  ></td>   
      <td class='tableCellThree'>div class='alert'>{if error:member_name}<span class="highlight">*</span> {error:member_name}{/if}</div></td>
      
    </tr><tr>
      <td class='tableCellTwo'>div class='defaultBold'><span class="highlight">*</span> Email</div></td>
      <td class='tableCellOne'>input type="text" name="email" value="{email}" maxlength="40" class="input" size="25"  ></td>
      <td class='tableCellThree'>div class='alert'>{field_errors}<span class="highlight">*</span> {error:email}{/field_errors}</div></td>
        </tr><tr>
         <td class='tableCellTwo'>div class='defaultBold'><span class="highlight">*</span> Confirm Email</div></td>
      <td class='tableCellOne'>input type="text" name="email_confirm" value="{email_confirm}" maxlength="40" class="input" size="25"  ></td>
      <td class='tableCellThree'>div class='alert'>{field_errors}<span class="highlight">*</span> {error:email_confirm}{/field_errors}</div></td>
        </tr><tr>
      <td class='tableCellTwo'>div class='defaultBold'><span class="highlight">*</span> Password</div><div class='default'>Passwords must be at least 5 characters long, contain at least 1 uppercase, 1 lowercase, and 1 number</div></td>
      <td class='tableCellOne'>input type="password" name="password" value="" maxlength="40" class="input" size="25"  ></td>
      <td class='tableCellThree'>div class='alert'>{field_errors}<span class="highlight">*</span> {error:password}{/field_errors}</div></td>
        </tr><tr>
      <td class='tableCellTwo'>div class='defaultBold'><span class="highlight">*</span> Confirm Password</div></td>
      <td class='tableCellOne'>input type="password" name="password_confirm" value="" maxlength="40" class="input" size="25"  ></td>
      <td class='tableCellThree'>div class='alert'>{field_errors}<span class="highlight">*</span> {error:password_confirm}{/field_errors}</div></td>
        </tr><tr>
      
      <td colspan='2' class='tableCellOne'>
          <input type='checkbox' name='accept_terms' value='y'  />  <span class="alert">I agree to the <a href="http://{path=company/terms_of_service}"> Terms of Service</a></span>
          <input type="submit" value="Register" class="submit" /></p>
          <span class="highlight">*</span> Indicates required fields
       </td>
       <td class='tableCellThree'>div class='alert'>{field_errors}<span class="highlight">*</span> {error:accept_terms}{/field_errors}</div></td>
        </tr>
     </tbody>
     </table>
     {/exp:profile:register}

    Tried both the “{field_errors}{error:field_name}{/field_errors}” shown above as well as “{if error:field_name}{error:field_name}{/if}” syntax with same results

    Muchos Nachos:)

     

  • #2 / Sep 06, 2012 11:56am

    Lisa Wess

    20502 posts

    Good morning, readmetwice!

    SafeCracker does not handle membership forms - I looked up your {exp:profile:register} form - as I had not seen it before - and came across this add-on.

    Since this is a third-party add-on, you’ll ned to get in contact with the author for assistance.

    I hope that helps get you moving in the right direction.

    Thank you!

  • #3 / Sep 09, 2012 1:34am

    readmetwice

    18 posts

    That is the add on I am using, which is not showing any of the base field error messages like for email, password. Thoughts?

    I have asked Chris Newton the author of the addon, but figure we should attack it from both ends. Mighty suspect that the custom field error messages work but not the base fields as quoted above. Thanks.

  • #4 / Sep 10, 2012 11:11am

    Lisa Wess

    20502 posts

    Hi, readmetwice -

    Is there surrounding code?  Nothing in the sample that you show me has anything to do with first-party EE - it is all created and handled by a third-party add-on, so that’s where you need to go for support.  If you can post the entire template that may give us some hints, though.

    Thank you.

  • #5 / Sep 10, 2012 8:24pm

    readmetwice

    18 posts

    A solution may be a joint effort here. the validation and error messaging for “email” and “password” are generated by EE correct? this is what I meant by base EE stuff, vs. say a custom field. Looking for some guidance within the umbrella that the addon tags mimick safecraker tags.

    Thanks

  • #6 / Sep 11, 2012 1:56pm

    Lisa Wess

    20502 posts

    Hi, readmetwice -

    As far as I can tell, this is an add-on that is completely separate from anything Safecracker is doing - it doesn’t even call the Safecracker code.  Has the author been able to assist you at all?

  • #7 / Sep 16, 2012 12:11am

    readmetwice

    18 posts

    No support just yet. The description of the {exp:profile:register} tag is “This tag is shortcut to a SafeCracker entry_form tag, and inherits all of its parameters and tags”.

    Can we assume its the safecracker field and perhaps the same fix would help in this case? thanks

  • #8 / Sep 17, 2012 5:03pm

    Kevin Smith

    4784 posts

    Hey readmetwice,

    I’m sorry to see the trouble you’re having here. I really do wish we could help, but you’ll need to get support from the maker of the add-on for this particular issue.

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

ExpressionEngine News!

#eecms, #events, #releases