Tuesday, March 25, 2003 01:50 PM
I just did a page where I pre-filled values and let the user edit some of them by clicking a checkbox, for each field, to enable it for editing. e.g. if I had text field "firstName" I also had checkbox "cboxFirstName", and so on.
Over on the server side, when the form is submitted, in the Action, I loop through all the form properties for the checkboxes ("cboxFirstName", "cboxLastName", etc.), looking for non-null, true-valued ones.
Only the checked (enabled) checkboxes are passed as parameters, that's the trick. So for each one I got (each non-null checkbox form property), I knew the corresponding text field had been enabled for editing, hence I got its value, from the corresponding form property.