Hi all,
I seem to remember that there is a way to add fields to forms programmatically, on the fly. Can someone refresh my memory? I need to create a survey database but the user wants to manage his own survey content including having bazillions of possible sections and infinite number of survey questions in each section. Rather than adding bazillions of fields to the forms and having a gigantic form with most everything hidden, I’d rather add those fields on the fly. Has anyone added fields to forms programatically before?
Thanks,
Trish
Subject: How to build forms on the fly?
Thank you both, Rami and Harkpabst, for your replies! I was hoping to do this with LotusScript. Alas, perhaps in a future version. Since I need to knock this project out in a few days I will have to do the hide-when thing (with sections) - thank you again.
I will definitely read about that tool!
Trish
Subject: RE: How to build forms on the fly?
Rocky Oliver has a nifty application to do this using DXL – he showed it at Lotusphere this year. I believe this download includes it.
Though I have some argument with his implementation from the standpoint of elegance, it does the job, and you should be able to adapt it to your needs.
Subject: How to build forms on the fly?
You can somewhat do this using Lotusscript and DXL. I woulden’t call the process easy and I wouldn’t call DXL bug free. However DXL does offer some methods for building a form programatically.
One of the biggest experts on DXL keeps his blog at Lotusgeek.com. If you do a search on DXL at Lotusgeek.com you will come up with a gold mine of ideas.
There are also some DXL projects dealing with this at OpenNTF.org .
Good luck.
Subject: How to build forms on the fly?
Take a peek at using sub-forms and using a computed subform(s) to make them appear or disappear on your main form.