Hi, we are looking to improve the customer experience on our online forms, so that if a customer accesses a form link anonymously via the website and then goes on to cancel this, it redirects to the specific page on the website where they clicked the link. I understand we would need to write the URL to the case creation - has anyone implemented this or something similar?
Thanks
Henry
The cancel button on forms is tied to the Case Header Buttons widget and has a callback to determine the URL. For cases created on the portal it’s normally a composite for the portal page that is defined in this reference (“field_case_portal_link”). So you could change it so it gets the URL from a widget setting instead. Might be worth duplicating the widget and testing it out.
Thanks @s.vernon - with this approach, could I configure it to automatically recognise the last URL visited before the form was opened? Would be good to see a working example if you or others have one.
Thanks
Henry
Hi Henry, unfortunately you probably wouldn’t be able to go back to the previous URL before the form was opened, you would need to specify where to redirect to.
Ok thanks @s.vernon, appreciate your advice in any case.