This topic is locked

Required field behavior

8/7/2009 2:46:20 PM
PHPRunner General questions
E
ekurzen author

I've created a form with a number of required fields in PHPRunner 5.1, and in testing it out, I find that if a required field is left blank, the fields that need to be filled out are marked, but the browser window doesn't scroll up to these fields, so the user has to scroll around to see why the form isn't being submitted. This changed from the older versions of PHPRunner, where a window came up to alert the user.
Is there a way to have the browser go to the first required field that is empty, to better alert the person filling out the form what they need to do?
Thanks for the help.
Eric

S
Shankar 8/9/2009

I've created a form with a number of required fields in PHPRunner 5.1, and in testing it out, I find that if a required field is left blank, the fields that need to be filled out are marked, but the browser window doesn't scroll up to these fields, so the user has to scroll around to see why the form isn't being submitted. This changed from the older versions of PHPRunner, where a window came up to alert the user.

Is there a way to have the browser go to the first required field that is empty, to better alert the person filling out the form what they need to do?
Thanks for the help.
Eric


Not the most elegant of solutions, but you could move all the required fields to the left of the table in the "Totals" Menu.

J
Jane 8/10/2009

Eric,
unfortunately there is no easy way to do it in the current version.

We'll add this feature to our suggestion list.

E
ekurzen author 8/10/2009

Thanks for the responses. Is there at least a way to send the user back to the top of the form? As it stands now, if a user clicks the Submit button and a required field is left blank, it just scrolls up to the start of the last fieldset, which doesn't even contain any required fields. This could be very confusing for the user attempting to submit the form, as they can't see any of the fields that are required, and thus can't see the error flag.