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.

Switch off or disable email encode javascript in Custom Profile Data in input

April 05, 2011 2:49pm

Subscribe [2]
  • #1 / Apr 05, 2011 2:49pm

    Sam Sullivan

    64 posts

    Hi,

    Is it possible to stop the Javascript anti-spam encode for email addresses in Custom Member Profile fields, it doesn’t like it when used in a form input?

    {exp:member:custom_profile_data}
    <input type="hidden" id="email_address" name="email_address" value="{paypal_email}" />
    {/exp:member:custom_profile_data}
  • #2 / Apr 06, 2011 11:53am

    Lisa Wess

    20502 posts

    Hi, Sam,

    Unfortunately that isn’t possible at the moment, though I believe there are existing feature requests for this.  You may wish to post a feature request for this as well.

    Please post back if you have any other questions.

  • #3 / Apr 20, 2011 5:37pm

    If anyone else runs into this issue, it’s easy enough to work around it using the exp:query tag, like this:

    {exp:query sql="select email as paypal_email from exp_members where member_id = {segment_2}"}
    <input type="hidden" id="email_address" name="email_address" value="{paypal_email}" />
    {/exp:query}

    I renamed the variables in the sql variable, just to keep the tags straight (in case {email} is used in a parent tag).

    Hope that helps!

  • #4 / Apr 20, 2011 6:08pm

    Sue Crocker

    26054 posts

    Welcome to the ExpressionEngine forums, Poultry n Motion. Thanks for the workaround for Sam.

    Sam?

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

ExpressionEngine News!

#eecms, #events, #releases