Dropdown Options

How to set selected and disabled options in a ChronoForms dropdown.

Overview

The form builder interface initially only supported marking an option as selected, not disabled.
In CF v7, use the 'selected' setting to pre-select an option. For disabled options, use the 'Options types' advanced setting in the dropdown element, a feature added in a later update.

Answered
ChronoForms v6
vi vinzter 14 Dec, 2020
Hello,
I would like to know if there is an easy way to pass regular parameters selected or disabled in a dropdown.
For example in html it would be like this :
<select name="team">
<option value="a">A</option>
<option value="b" selected>B</option>
<option value="c" disabled>C</option>
<option value="d">D</option>
</select>
Max_admin Max_admin 14 Dec, 2020
disabled not possible, selected yes, please use v7, the interface has a "selected" setting for you to tick!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
vi vinzter 15 Dec, 2020
Hello Max,
Thank you for your quicik reply.
It's cool for the selected option but it would be great to have the disabled option either.
Do you think it's something that will be implemented in next release ?
Have a good day.
Max_admin Max_admin 17 Dec, 2020
Answer
I have added this to the next update, you will be able to select the option type in the Options types advanced setting of the dropdown!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.