Create CheckBoxes Group dynamically (Ver. 4.0 RC1.9)

Co Corvino 01 Jul, 2011
Hi,
i've a CheckBoxes Group in my form.
I've inserted 10 elements using field "options".

What can i do to create dynamically the elements pulling data from an external database.

Example:
I' ve some services in my CRM (extrnal mySQL db) Table, and i would to show these services dynamically in my CMS (Joomla).

I'm able to show data with CUSTOM CODE Action using echo command but i can't bind this data to CheckBoxes Grouip elements.

Thanks
Gr GreyHead 02 Jul, 2011
Hi Corvino,

I would use PHP to build the options for the select drop-down in the Custom Element. A simple loop will do it and the element will add the wrapping HTML for you.

Bob
Co Corvino 04 Jul, 2011
Hi,
Ok for the Custom code action but how can i referer to the object? For example:
<checkbox.item>=$row[1];
Thanks
Gr GreyHead 04 Jul, 2011
HI Corvino,

I'm sorry, I don't understand the question and the line of code doesn't look like valid PHP ??

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