Efficient creation

barrieroche 13 Dec, 2010
What is the best way to be able to reuse PHP code in ChronoForms.

For example I would like to be able to select data from a database table based on cf_user_id and then populate a drop down box.

I would like to use this code on multiple forms and not have the code overwritten if I make changes to the form.

Please advise on the best strategy

Thanks
Barrie
GreyHead 01 Jan, 2011
Hi Barrie,

You can use predefined 'Wizard Custom Elements' in the Wizard - that might be a suitable way to handle a single drop-down.

Or, and I use this approach often, you can use PHP include commands in the Form HTML to add common elements (or whole forms). Please see this post for a much longer answer.

Bob
This topic is locked and no more replies can be posted.