PDA

View Full Version : Dynamic Form Field Creation


Tom M
04-03-2009, 08:35 AM
Hi,

Here is what I want to do...

I have a form with a checkbox. When the checkbox is checked, I want to rebuild the form to include fields that will correspond to a set of records queried from a database. If the checkbox is unchecked, I want rebuild the form to not include those fields.

Can this be done with a WebAssist trigger of some kind?

Thanks,

TM

Ray Borduin
04-03-2009, 08:53 AM
This can be done with DataAssist search.

Tom M
04-03-2009, 01:54 PM
I don't think you can attach an event to a checkbox can you. Doesn't it have to be a button?

Ray Borduin
04-03-2009, 02:15 PM
You can attach an event to a checkbox or any other form element.. but in this case you wouldn't use that for the event, you would use it for the filter value in DataAssist search. The event would still be the page submit. Do you want to actually submit the page and requery the database based on the checbox check event? I may not have a clear understanding of what you are talking about.