Hi,
I am using the form_helper plugin to create a SAEF. Two of my fields contain email addresses and urls respectively. The auto-code function of EE appears to interfere with the form_helper function when the user edits their record. Without turning off the auto-code link function in weblog preferences, I have managed to resolve the problem with the url field through the use of the ‘strip_html’ plugin, and by defining the field as text-area. However the strip_html pluging/tag does not have the desired effect the field containing email addresses.
Here is the code I am using:
{exp:weblog:entries weblog="{segment_3}" status="not closed" show_expired="no" rdf="off"}
{exp:form_helper:member_is_author author_id="{author_id}"}
{exp:weblog:entry_form weblog="{segment_3}" return="{segment_3}/editlist/{entry_id}"}
<input type="hidden" name="entry_id" value="{entry_id}" />
<input type="hidden" name="entry_date" value="{entry_date format='%Y-%m-%d %g:%i %A'}" />
...
<p>Contact_email:<br />
<textarea name="{exp:form_helper:field_grabber field_name='contact_email'}" rows="1" cols="55" />
{exp:form_helper:field_parser}{exp:html_strip convert='Y'}{contact_email}{/exp:html_strip}{/exp:form_helper:field_parser}</textarea>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='contact_email' which='format'}" value="br" />
<br>
<p>Website:<br />
<textarea name="{exp:form_helper:field_grabber field_name='website'}" rows="1" cols="55" />
{exp:form_helper:field_parser}{exp:html_strip convert='Y'}{website}{/exp:html_strip}{/exp:form_helper:field_parser}</textarea>
<input type="hidden" name="{exp:form_helper:field_grabber field_name='requirements' which='format'}" value="br" />
<br>
...
{/exp:weblog:entry_form}
{/exp:form_helper:member_is_author}
{/exp:weblog:entries}
Does anyone know how I can resolve the issue with fields containing email addresses without resorting to disabling the auto-code function in weblog preferences?
Thanks
