Forms - Allow option to pass in own "Success" function
complete
E
Emily Dickson
Allow partners the option to pass in their own "success" function after submission- so they can stay on the same Page instead of redirecting - or carry out an alternative action of their choice.
Log In
Matt Walter
complete
System Files - 2.8.2.0 - https://help.siteglide.com/article/245-module-system-files-changelog
Matt Walter
planned
C
Casey Jeppesen
I figured out a partial work-around.
In siteglide-cli > form_configurations > forms > form_#.liquid, i deleted "return_to: "/#"
and also deleted "<input name="siteglide_redirect" value="/#" type="hidden">" from the form layout
this keeps the user on the same page after form submit. we wrote some if/then statements on that page, to show different blocks after submit. works well for our purposes.
C
Casey Jeppesen
*Note - this workaround is temporary, as it breaks as soon as the form is saved in admin portal (or other form/module updates are done).
C
Casey Jeppesen
PLEASE implement this as soon as possible.