Forums

Auto Generate Form

Noein 15 Dec, 2016
Hi,
it is possibile to generate form (or a part of form) dynamically ?
I have a DB with data, I would like to create some CheckBox Group (+Fieldset if possible but not necessary) on form load, it is possible?

(PS not 1 CheckBox Group but many CheckBox Group, like part of form)

ty so much
bye, Fabio
Max_admin 15 Dec, 2016
Hi Fabio,

The "Checkbox group" field has a "dynamic data" section which you can use, but you need to load the data first using a "DB Read" action before the "Show html" action.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Noein 15 Dec, 2016
thanks for the reply, my problem is different, the dynamic data assumes a CheckBox Group in Wizard whereas I would like to create "n" CheckBox Group dynamically

Now, in wizard I am creating around 50 checkbox group, I wanted to understand if I can do it automatically with the php code

(another idea is create the form with my script and then paste the code into custom code but so lose wizard...)
GreyHead 15 Dec, 2016
Hi Noein,

You can use Custom Code elements in the Designer tab to include chunks of Custom code in the form layout.

Bob
Noein 16 Dec, 2016
thanks so much😀
GreyHead 16 Dec, 2016
Hi Noein,

I usually break the code into two. I load the data and do any processing in a Custom Code action in the Setup tab; then output the HTML from that in a Custom Code element in the Designer tab. Just a question of personal preference though.

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

VPS & Email Hosting 20% discount
hostinger