File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Complex form creation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

Complex form creation

Nicholas Dean

Joined: May 17, 2011
Posts: 23

I was wondering if anyone could point me in the right direction.

I am intending on making a complex form. The form has may aspects that the user can add dynamically.

So we have a parent form, f1. Inside this we have a button called 'Add new block' - from here a new legend opens below with a table inside to which users can as many individual rows with new content as they wish.

This trend repeats as many times as the user would like.. So we can end up with a form, with two inner forms, each of those can have two more inner forms, and so on.

Using the <form> tag etc, doesn't really work well, by this I mean there is always an area that is a bit hacky. Using iframes can become confusing as there are times that the content needs to be defined, however we don't know what any of the content will look like nor contain.

I'm confused with an approach, one that will be user friendly and not require a masters to figure out the flow.

I have thought of making each individual inner form as a separate html page, where there is a blank table with loads of empty options, and the users fills these in accordingly. However this means that I have to have a potentially unlimited number of empty boxes residing on the page (as I do not know how many aspects the user will add).
It can be done this way, however it is a bit mechanical in its flow, and does not give the user complete freedom..

You may be aware that I am not a Web Developer at heart, I know some fundamentals, however I am being encouraged at the moment to output something grand, for proof of concept.

Thanks greatly for any hints or suggestions,
Nicholas Dean.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

Please do not post the same question more than once.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Complex form creation
It's not a secret anymore!