Dynamic Select Box

mhmdmed 22 Mar, 2012
Hello,

I have a form that contains only 1 textbox field called "name" with a submit button

I want the names to appear inside the select box each time I enter a new name.

Please give me a simple example.
GreyHead 22 Mar, 2012
Hi mhmdmed,

You want what Joomla! calls a 'combo' box? A select box that allows you to add new entries to the list?

WE haven't been asked that recently, I think that there may be an example here for ChronoForms v3 if you search back far enough.

Bob
mhmdmed 23 Mar, 2012
Hello Sir,

First thank you for your reply.

I am working on V4

Yest I want a combo box, but in Chronoforms V4 it is called Select Box.

I already saw the V3 example but I want a V4 example please
GreyHead 23 Mar, 2012
Hi mhmdmed,

Hmmm now I'm confused. The Select box is already on CFv4 and is called a Select Box.

Bob
mhmdmed 23 Mar, 2012
Yes true Sir,

I want to make a Dynamic Select Box that retrieves data from a stored table.

Please give me a simple example
GreyHead 24 Mar, 2012
Hi mhmdmed,

You can use the DB Multi-record loader action to get the data you want from the Database table. For example with the #__users table you could use id,username in the fields list box and set the Model ID to user_list

The use a Select Box element in the Preview box, open it and on the Dynamic Data tab put user_list in the Model ID box, id in the Value Key box and username in the Text Key box. Add any other settings you need, save the element and check your form is working.

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