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.

Stand alone entry form will not submit

September 17, 2013 8:08am

Subscribe [1]
  • #1 / Sep 17, 2013 8:08am

    matthewbond

    1 posts

    I wish to add a form to my website that will allow customers to add testimonials to the ‘testimonial’ channel as pending status. I have created the channel and custom fields i need and a new status pending. I used mijingo-expressionengine2-episode7 to guide me but since i am using EEv2.5.2 i think exp:channel:entry_form is no longer of use, so I am using exp:safecracker. Eitherway nothing happens when i submit. Filling in entry_id=”{segment_2}” throughs error - ‘You must specify a valid entry to edit.’

    Is their anything odvious I am missing?

    <br /> {exp:safecracker form_class="saef-form" channel="testimonial" status="pending" return="contact/thankyou/en/" entry_id="" use_live_url="no" url_title="" logged_out_member_id="10"}<br />                 <fieldset class=“contactDetails”><br />   <ol><br />     <li class=“saef-text”><br />     <label for=“title”>Title</label><br />     <input id=“title” name=“title” type=“text” size=“35” value=”{title}” placeholder=“Title”/><br />     </li><br />                 <br />     <li class=“saef-text”><br />     <label for=“role”>Role</label><br />                   <em>{instructions:role}</em><br />     <input id=“role” name=“role” type=“text” size=“35” value=”{role}” placeholder=“Role”/> <br />     </li><br />     <li class=“saef-text”><br />     <label for=“affiliation”>Hotel name</label><br />                   <em> {instructions:affiliation}</em><br />     <input id=“affiliation” name=“affiliation” type=“text” size=“35” value=”{affiliation}” placeholder=“Hotel name”/><br />     </li><br />     {custom_fields} <br /> {if textarea}<br />     <li class=“saef-content”><br />     <label for=“testimony”>Your Thoughts</label><br />                   <em>Instructions:  The main testimony goes here.</em><br />     <textarea id=“testimony” name=“testimony” cols=“40” rows=”{rows}”>{testimony}</textarea><br />     </li><br /> {/if}<br />                 <br />       <br />                 {/custom_fields} <br />     <li class=“saef-text”><br />     <label for=“shortquote”>Short quote</label><br />                   <em>{instructions:shortquote}</em><br />     <input id=“shortquote” name=“shortquote” type=“text” size=“35” value=”{shortquote}” placeholder=“Short quote”/><br />     </li><br />     <li class=“saef-text”><br />     <label for=“hotel-url”>Website address</label><br />                   <em>{instructions:hotel-url}</em><br />     <input id=“hotel-url” name=“hotel-url” type=“text” size=“35” value=”{hotel-url}” placeholder=“Website address”/><br />     </li><br />     <li class=“saef-text”><br />     <label for=“address”>Hotel address</label><br />                   <em>{instructions:address}</em><br />     <input id=“address” name=“address” type=“text” size=“35” value=”{address}” placeholder=“Hotel address”/><br />     </li><br />     <li class=“saef-text”><br />     <label for=“image”>Image URL</label><br />     <input id=“image” name=“image” type=“text” size=“35” value=”{image}” placeholder=“Image URL”/><br />     </li><br />     </p> <p>  </ol><br />   <input id=“saef-submit” class=“ba-button” type=“submit” value=“Submit” /><br />           </fieldset><br />   {/exp:safecracker}<!—/end<br />

    HTML Output hidden fields

    <div class=‘hiddenFields’>
    <input type=“hidden” name=“XID” value=“9f9f6f943424aab36624876fea014ed169166a3f” />
    <input type=“hidden” name=“ACT” value=“15” />
    <input type=“hidden” name=“RET” value=“http://mysite.org/contact/thankyou/en/” />
    <input type=“hidden” name=“URI” value=“site/add-testimonial” />
    <input type=“hidden” name=“recipients” value=“bW9uaWthLmt1YmlzaWV3aWN6QGJvb2thc3Npc3QuY29tLGRhcnJlbi5rZWFybmV5QGJvb2thc3Npc3QuY29tLGhhemVsLmJ1Y2hhbmFuQGJvb2thc3Npc3QuY29tLGlyZWxhbmRAYm9va2Fzc2lzdC5jb20sbWF0dGhldy5ib25kQGJvb2thc3Npc3QuY29tLGpvaG4uYnJhaW5lQGJvb2thc3Npc3QuY29tNGExY2FlMTMwMTg5MWM0NDI0ODliYTE3MTNmNDc3MmQ=” />
    <input type=“hidden” name=“user_recipients” value=“b2d22d8a23df01dc9a033ddcf6877f50” />
    <input type=“hidden” name=“charset” value=“utf-8” />
    <input type=“hidden” name=“redirect” value=“0.1” />
    <input type=“hidden” name=“replyto” value=”” />
    <input type=“hidden” name=“site_id” value=“1” />

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

ExpressionEngine News!

#eecms, #events, #releases