Quantcast
Channel: ASPRunner forums
Viewing all articles
Browse latest Browse all 2586

Working with required fields located in tabs/sections

$
0
0
Hi Guys,

Phprunner gives us many great ways to work with required fields from the built-in required field option to the IsRequired option in the Javascript API.

It really is amazing what we can do with the software.

I was wondering how our community handle this validation scenario regarding required fields that are located in tabs or sections.

I have a add page, on the add page there are 5 tabs, on the 3rd tab I have two fields that are required.

The users moves along the tabs but they forget to add any data to the required fields on tab 3. (Even after highlighting the required fields via Javascript)

The user is now on the final tab, they press the save button, to the user nothing happens, the record will not save because the user never added data to the required fields on tab 3, without a message telling them this the user would have to manually click back to the 3rd tab to see the "red required field warning" that appears on the required field after they tried to save the record without adding the required data.

Therefore I am somewhat reluctant to add required fields to tabs or sections.

I was wondering how anyone else out there handles this scenario. Is there a way to using tabs/sections...

    Jump to/setFocus on each blank required field after the user presses save

or
    Use Javascript to display a message with the blank required fields listed or even just a message stating "you must complete all required fields" if any are blank after the uses attempts to save


I would love to hear your thoughts, workarounds or solutions on this.

Many thanks,
J

Viewing all articles
Browse latest Browse all 2586