I have a Safecracker form that is working as expected for the most part. The one thing I can’t figure out is how I can return the user to a thank you page, which links them back to the URL they completed the form from.
Here is a little piece of the code used to begin the safecracker form in case it’s needed.
{exp:safecracker
channel="contact_requests"
return="/thank-you"
url-title="{!-- Leave Empty to add a new entry --}"
entry_id="{!-- Leave Empty to add a new entry --}"
include_jquery="no"
dynamic_title="Quote Request from [first_name] [last_name] on {current_time format='%F %d, %Y - %g:%i:%s'}"
logged_out_member_id="X"
preserve_checkboxes=“yes”
error_handling="inline"
}
BTW, I’m currently saving the “Full URL” to the page used to submit the form to the Channel in a custom field called {page_accessed}. This information is stored in a hidden input like so,
<input type=“hidden” name=“page_accessed” value=”{exp:current_url:full_url}” />
It would be nice if I could store this data to the custom field without using a “hidden” input because anyone could edit/insert their own value with a tool like Firebug. How can this be done?