Set default value of select (in editor edit mode) using value from GET variable
Set default value of select (in editor edit mode) using value from GET variable
This question has an accepted answers - jump to answer
This discussion has been closed.
This question has an accepted answers - jump to answer
Answers
As in, you want to make an Ajax request to determine what the default should be? Are you using
dependent()
to set the options by any chance? If so, then you could also set the value using those options.If not, you would need to use
initEdit
to make the Ajax request and get the value, then useval()
to set the value.Allan