Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Hi, I have set up a contact form using UserDefinedForms module. All works as expected.
Is there a way to not replace the $Content when a user defined form submits? Ideally, a flash message would be configurable rather than replacing the page content.
Add a custom ReceivedFormSubmission.ss to your theme and enter whatever variables such as $Content in there.
Thanks for your information. I'm in struggling that the finished message showed blank. It seems the finished page still rendered with my UserDefinedForm.ss instead of ReceivedFormSubmission.ss. One of my trial is to add "render" at the end of finished() like below:
'Content' => $this->customise(array(
'Submission' => $submission,
'Link' => $referrer
'Form' => '',
it can make the page rendered with ReceivedFormSubmission.ss but still shows nothing, I'm thinking the value of $OnCompleteMessage in ReceivedFormSubmission.ss is correctly got.
Would be thankful if any suggestion provided.