Welcome Guest, Not a member yet? Register   Sign In
Array input validation help
#10

A slightly different approach to displaying and editing the vehicle info could simplify thing a lot. Instead of putting multiple editable vehicle forms on the customer page simply list the available info for each vehicle as static text. With each listing associate an "Edit" button. That button redirects to a page with the form populated with the associated data.

In addition to the "Submit" button, the form might contain a "cancel" link that would return the user to the customer page (as would the browser's back button).

Assuming a submit succeeds, the browser redirects to the customer page again where the new information will be displayed.

The "Add Another" (or maybe more appropriately "Add Vehicle") button on the customer page redirects to an empty form.

Data acquisition, field validation and view designs are greatly simplified using this approach.

Such an interface could be created without using any javascript although it does not preclude it if, for instance, you want to do client side field validation or get fancy and open the editing form in a modal dialog.

A good example of this approach can be found on the Amazon website for account management.
Reply


Messages In This Thread
Array input validation help - by greenarrow - 07-28-2016, 09:34 AM
RE: Array input validation help - by mwhitney - 07-28-2016, 10:42 AM
RE: Array input validation help - by greenarrow - 07-28-2016, 11:31 AM
RE: Array input validation help - by mwhitney - 07-28-2016, 01:27 PM
RE: Array input validation help - by greenarrow - 07-29-2016, 02:26 AM
RE: Array input validation help - by mwhitney - 07-29-2016, 06:22 AM
RE: Array input validation help - by PaulD - 07-28-2016, 12:03 PM
RE: Array input validation help - by greenarrow - 07-28-2016, 12:30 PM
RE: Array input validation help - by greenarrow - 07-28-2016, 11:19 PM
RE: Array input validation help - by dave friend - 07-29-2016, 07:57 AM
RE: Array input validation help - by PaulD - 07-29-2016, 08:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB