diff options
author | Zarino Zappia <mail@zarino.co.uk> | 2017-07-18 16:42:49 +0100 |
---|---|---|
committer | Zarino Zappia <mail@zarino.co.uk> | 2017-07-28 14:35:48 +0100 |
commit | 405cf67716a5d6ec835973d7093e3a71f9b52879 (patch) | |
tree | 3f3a993eb8c34c955b8dc2bd84a066369460ca13 /templates | |
parent | 9d5e44842fdac0d3894ed82885a4079df85ba890 (diff) |
Option to redirect to custom URL from Contact form
If a `success_url` parameter is provided along with the contact form
fields, the user will be redirected to that URL upon successful form
submission.
We use it for the first time on the (UK) FixMyStreet Pro marketing page.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/web/fixmystreet.com/about/council.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/templates/web/fixmystreet.com/about/council.html b/templates/web/fixmystreet.com/about/council.html index 93c2604d1..b6690a6d2 100644 --- a/templates/web/fixmystreet.com/about/council.html +++ b/templates/web/fixmystreet.com/about/council.html @@ -25,7 +25,7 @@ </div> <div class="councils-hero__demo-access"> <h2>Try FixMyStreet Professional right now, on our demo site</h2> - <form class="councils-hero__demo-access__form js-fms-pro-demo-form"> + <form action="/contact/submit" method="post" class="councils-hero__demo-access__form js-fms-pro-demo-form"> <div class="form-group"> <label for="demo-name">Name</label> <span class="required">required</span> @@ -43,9 +43,15 @@ </div> <div class="form-group"> <label for="demo-job">Job title</label> - <input type="text" name="job" id="demo-job"> + <input type="text" name="extra.job_title" id="demo-job"> </div> <div class="form-group submit-group"> + <input type="hidden" name="extra.referer" value="[% c.req.headers.referer | html %]"> + <input type="hidden" name="subject" value="Demo site request"> + <input type="hidden" name="message" value="This visitor was sent a link to demo.fixmystreet.com"> + <input type="hidden" name="recipient" value="enquiries"> + <input type="hidden" name="dest" value="from_council"> + <input type="hidden" name="success_url" value="https://demo.fixmystreet.com"> <input type="submit" value="Let me in" class="btn"> </div> </form> |