Front-end cloning used to be possible in Safecracker but apparently this functionality was removed in EE 2.6 - I’ve got round it like this (thanks to a user on Stack Exchange):
-----
PARENT
-----
{exp:safecracker channel="my_channel"}
{embed="my_tpl_group/my_form" copy_from_entry_id="123"}
<button id="form_submit" type="submit" class="">Duplicate Program</button>
{/exp:safecracker}
-----
EMBED
-----
{exp:channel:entries channel="my_channel" entry_id="{embed:copy_from_entry_id}" }
{!-- Output the pre-filled form of the entry you are wanting to duplicate --}
<label for="program_number">program_number</label>
<input type="text" name="program_number" id="program_number" value="{if program_number}{program_number}{/if}">
<input type="hidden" name="program_start_date" id="program_start_date" value="{if program_start_date}{program_start_date format='%F %d, %Y'}{/if}">
.....etc…..
{/exp:channel:entries}
And this works in Channel Form fine. The problem is that I needto show Inline Error Reporting and this does not work because of the embed. It just gives the actual code of the error - i.e.:
{error:my_field}And not the error message.
Any way round this? Is there a way of doing this with Stash - embedding/pre-parsing the entry and thus getting the error to show correctly?