Posts

Showing posts with the label success message

Inline thank you message in Sitecore Forms

Image
With the release of Sitecore XP 9.3 a lot of modules that were previously part of Sitecore Forms Extensions now come out of the box, which is great. The new features like automatic bot detection, file upload field and option to publish from the Forms Editor makes life easy. However, one thing that kept bothering me is the lack of option to show an inline thank you/success message on the form without having to move to the next page within the form or redirect to a whole new page. This seems to have been asked in forums multiple times and there are a couple of hacks to achieve this. But I couldn't find any of them clean or easily maintainable in the long run. So, I decided to take the matters into my own hands. Here are few simple steps to achieve this... Step 1 Create a custom pipeline processor for forms.renderForm pipeline. We want to show a thank you message only on submit button click (not on first load) and only when the form is submitted successfully. We can find if t...