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.’ but in the EE documentation is says i can leave blank for data entry and this does nothing.
{exp:safecracker form_class="saef-form" channel="testimonial" status="pending" return="contact/thankyou/en/" entry_id="" use_live_url="no" url_title="" }
HTML Output hidden fields
<form id="publishForm" class="saef-form" method="post" action="http://mysite.com/site/add-testimonial" enctype="multipart/form-data" >
<div class='hiddenFields'>
<input type="hidden" name="ACT" value="56" />
<input type="hidden" name="RET" value="http://mysite.com/site/add-testimonial" />
<input type="hidden" name="URI" value="site/add-testimonial" />
<input type="hidden" name="XID" value="d4fdd1ccc89be4d869e62c56a38f37ff277b7f6f" />
<input type="hidden" name="return_url" value="contact/thankyou/en/" />
<input type="hidden" name="author_id" value="6" />
<input type="hidden" name="channel_id" value="12" />
<input type="hidden" name="entry_id" value="0" />
<input type="hidden" name="status" value="pending" />
<input type="hidden" name="site_id" value="1" />
<input type="hidden" name="return" value="contact/thankyou/en/" />
<input type="hidden" name="allow_comments" value="n" />
</div>
<fieldset class="contactDetails">
<label for="title">Title</label>
<input id="title" name="title" type="text" size="35" value="" placeholder="Title"/>
<label for="role">Role</label>
<em>Role of the person who gave quote, eg: General Manager</em>
<input id="role" name="role" type="text" size="35" value="" placeholder="Role"/>
<label for="affiliation">Hotel name</label>
<em> Affiliation / hotel name</em>
<input id="affiliation" name="affiliation" type="text" size="35" value="" placeholder="Hotel name"/>
<label for="testimony">Your Thoughts</label>
<em>Instructions: The main testimony goes here.</em>
<textarea id="testimony" name="testimony" cols="40" rows="4"></textarea>
<input id="saef-submit" class="ba-button" type="submit" value="Submit" />
</fieldset>
</form>
i have removed all other scripts from the page. What am I missing?