Forums

How to refresh the form to enable new submission?

oloccina 15 Dec, 2015
Hello,
I was wondering if there is a way to add a "Refresh" button
to the form, so a user can submit the same form several times

Currently after submitting my form I display a thank you message,
if I refresh the page I still see the thank you message and I never get to see the form again.

Thank you!
GreyHead 15 Dec, 2015
Hi oloccina,

You can use a Custom Code action to show a System message
<?php
$app =& JFactory::getApplication();
$app->enqueueMessage('Thank you');
?>
Then follow that with an Event Loop action to re-load the form.

Bob
This topic is locked and no more replies can be posted.