contact-form icon indicating copy to clipboard operation
contact-form copied to clipboard

Clear the form after submitting

Open heeyio opened this issue 8 years ago • 8 comments

Hi - great work. Is it possible to add a "form clearing or reload page function" after submitting?

Best, Kæv

heeyio avatar Oct 25 '16 14:10 heeyio

Hi, I actually got this from someone else I forked it into my git account.

Best regards, Santos

SantosM1281 avatar Oct 25 '16 17:10 SantosM1281

Oh - haha, okay! Thank you for your quick response.

Best, Kæv

heeyio avatar Oct 26 '16 09:10 heeyio

I copied it cuz I wanted to play with it. What did you do to the code if you dont mind me asking.

Santos

SantosM1281 avatar Oct 26 '16 18:10 SantosM1281

A collegue played around with it. By testing the form I recognized, that the refreshing function is missing. So the user still sees his message after submitting and that‘s kinda irritating.

Best, Kæv

heeyio avatar Oct 27 '16 06:10 heeyio

I solve issues like these by guiding users on success pages after submitting. Example: datenschleuse.i2solutions.de/kontakt

Best, Kæv

heeyio avatar Oct 27 '16 09:10 heeyio

Cool that's awesome

SantosM1281 avatar Mar 13 '17 19:03 SantosM1281

@KevHeyland @cgimmer Can you give me this contact form for downloading datenschleuse.i2solutions.de/kontakt, for bootstrap studio

glerinsonum avatar Apr 10 '17 18:04 glerinsonum

Use a header location tag to redirect back to index.php or create some other html page.

https://www.php.net/manual/en/function.header.php

Tray-s avatar Jun 09 '24 04:06 Tray-s