Disable inline Select based on value in Row
Disable inline Select based on value in Row
greggreggreg
Posts: 42Questions: 19Answers: 2
in Editor
I have inline editor working nice and happy, it has a drop down selector. But, I would like there to be no selector based on the value in another field. Is this possible?
{
"label": "Other FIeld:",
"name": "db_other_field"
},{
"label": "My FIeld:",
"name": "db_field",
"type": "select",
"options": [
{ "label": "None", "value": "" },
{ "label": "One", "value": "One" },
{ "label": "Two", "value": "Two" }
]
}
How do I disable the Select on db_field, if db_other_field is equal to "String".
thanks
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You could do something like this : http://live.datatables.net/yupeciwo/1/edit
Here, it only lets you edit a cell if the "Office" isn't "London". Hopefully that'll get you going,
Colin
that was perfect,... thank you