By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

Add additional fields to a form

P: n/a
Hi, I would like for users to check a box within a form to add more fields.

I have a simple form for scheduling deliveries but I need it to work a bit harder! The form caters for 1 palet of goods where the user can add the weight and dimensions of the pallet. I would like now to have the form handle up to 10 pallets, but only add more fileds when the user selects a "add more fields" type option. The database I use is SQL and I have added 10 additional tables to handle the requirements.

I have no idea how this could be done so any guidance would be appreciated.
Many thanks.

Scott
Oct 11 '10 #1
Share this Question
Share on Google+
1 Reply


jhardman
Expert 2.5K+
P: 3,405
I've seen probably three ways to handle this issue, only one of those requires server-side scripting (asp for example). That approach is to perform some action (like a button-click) that sends a form back to the server, and the asp script re-builds the form with more fields.

Nowadays I see more people use javascript-based approaches. Either have javascript create new fields in runtime or have the extra fields hidden until needed.

Let me know if any of this helps or if it has at least helped you kn ow the way to go.

Jared
Oct 11 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.