Select options as a callback?
Select options as a callback?
rocketreading
Posts: 8Questions: 6Answers: 0
in Editor
Hi there,
I'm looking to find a way to have a cell's select options dependant on another field's value - and when that other field's value changes, the field's options change (just for that row).
Is this possible?
Many thanks.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi,
The
dependent()
method was designed to handle this. This example shows howdependent()
can be used, albeit not to update an options list in this case, but that is an option based on the returned information.Allan
Thank you.
Two things: how do I access the correct row/cell to update with the below? Also - how can I ensure the host field is updated server-side?
Many thanks.
The row information is passed in using the
data
property - that will give the information about the row that is currently being edited, and thus (I presume) what you want to base the options upon?The value should be submitted as normal when you submit the form.
Allan