05/25/2016 at 11:27 am
#377530
Keymaster
@ Alison
re: When the user goes to the form I would like them to have the option to go back if they clicked to the form by error or out of curiosity. If they fill the form and change their minds I would like them to have the option to cancel and return to the previous
Maybe something like this???
add_filter( 'cn_form_edit_entry_before', 'alison_form_before' );
function alison_form_before() {
$permalink = cnURL::permalink(
array(
'data' => 'url',
'type' => 'home',
)
);
switch ( cnQuery::getVar('cn-process') ) {
case 'edit':
$string = 'Cancel';
break;
default:
$string = 'Back to directory';
break;
}
echo '<a href="' . $permalink . '">' . $string . '</a>'
}
re: I set the redirect screen but when the user submits the from it come back to the form.
You receive the success message, but the form is not redirected? Is that correct? Can you attach a screenshot of the Redirect settings? Can I get access so I can see? A temp admin login can be added a private reply.
