Add a warning or message box?

yaksushi 28 Dec, 2010
First off wonderful component, definitely worth "validating"!

I have a form where some users seem to be going passed the 15min mark and are timing out. To warn the users prior to filling out the form that there is a time limit on how long it will stay open I'd like to add a warning box or something to let them know the issue. I've searched the forum but haven't seen anything about adding a pop-up or warning that the user will actually notice. Maybe have the text area already filled in with the red validation error specifying that they have 15 min's??? Not sure what the best option is.
GreyHead 29 Dec, 2010
Hi yaksushi,

You could lengthen the Joomla! session time in the site Global Administration.

You could break the form up into steps so that it doesn't take so long to complete.

You can add a warning at the top of the page in the Form HTML.

Please also check this post by Fredrik - the keep alive option might help you.

Bob
yaksushi 29 Dec, 2010
Ok I've tried adding

<?php JHTML::_('behavior.keepalive'); ?>


to Form JavaScript:

To test it I set the time out to 1 min... But I haven't noticed a warning or anything in the form. Everyone is getting logged out in 1 min so I know I have the time out set right for testing. What exactly is <?php JHTML::_('behavior.keepalive'); ?> supposed to do?
GreyHead 29 Dec, 2010
Hi Yaksushi,

Why would you put a PHP command in the Form JavaScript box?

Please see the Joomla! docs for Keepalive here.

Bob
yaksushi 29 Dec, 2010
LMAO yeah I caught that and it's in my form....
This topic is locked and no more replies can be posted.