Options for Select Field Type - Default Drop-Down List Value
Options for Select Field Type - Default Drop-Down List Value
![rboudwin](https://secure.gravatar.com/avatar/cf17f02f402eb53a9fe649c99fbf53ab/?default=https%3A%2F%2Fvanillicon.com%2Fcf17f02f402eb53a9fe649c99fbf53ab_200.png&rating=g&size=120)
I would like to highlight/select the option in the drop-down list to match the value already returned in the column. I have not been successful in getting def to work. Should it be a placeholder?
fields: [
{
label: "RATINGCODE",
name: "RATINGCODE",
type: "select",
options: [
<cfoutput query="codes">
{ label: "#codes.ratingcode#", value: "#codes.ratingcodeid#"},
</cfoutput>
]
}
This discussion has been closed.
Answers
Hi @rboudwin ,
I don't quite follow, sorry. In this example here, if a field is a
select
dropdown, see the Location column, when it is edited the current value is always highlighted by default. I don't think I'm understanding your issue.Cheers,
Colin
I believe what I had missed is the ability to have editFields. Once I used editField, it appeared to be working correctly. Thank you!
Thank you!