In QuickMode, add a Select-List element to your form. In the 'List' field, you will see: 

0;Title 1;value1

0;Title 2;value2

0;Title 3;value3 

 

 

For a select-list, the format to layout the options is as follows:

0;Label;Dabatase Value

or

1;Label;Database Value

If you put a 0 at the front, then the option will not be selected. If you put a 1 at the front, then that option will be selected.

If you want to have the first line of a Select-List be something like "Choose Type..." then you would set that up like this:

0;Choose Type...;

In this case, you will notice that there is no value entered after the second semicolon. That is because, if you put a value in it and then use validation rules that state the element is required, any text after that second semicolon would make it appear that a choice had been made. If you put no text after the second semicolon, then the validation script will still prompt them to select a choice in the field.

So, putting all of that together, let's say you want to give someone a color choice. You might code it as follows: Your options will appear in the list in the same order as you enter them in the 'List' field. If you want to change the order, just move them around within that field.

The validation rule that should be used with a select-list is FF::ff_valuenotempty.

0;Choose Color;
0;Red;Red
0;Blue;Blue
0;Green;Green
0;I like all colors so it doesn't matter; Any color

 

Special Offer

Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!