You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{verbalr___get_questions} is populated via the form PHP Plugin onBeforeLoad successfully.
On working through this error it turned out that the data for {verbalr___get_questions} was not available to the Radio button element's Eval Populate at the time it ran. I got around this by getting the value using $this->getFormModel instead as so: $array_value = $this->getFormModel()->data['verbalr___get_questions'];
However, this now fails on submit as $this->getFormModel is not available on submit, which leads me to this inelegant dual method which does work:
Prior to 3.9.2 the below used to work but now fails with an SQL null error:
{verbalr___get_questions} is populated via the form PHP Plugin onBeforeLoad successfully.
On working through this error it turned out that the data for {verbalr___get_questions} was not available to the Radio button element's Eval Populate at the time it ran. I got around this by getting the value using $this->getFormModel instead as so:
$array_value = $this->getFormModel()->data['verbalr___get_questions'];
However, this now fails on submit as $this->getFormModel is not available on submit, which leads me to this inelegant dual method which does work:
I'm guessing this is a bug, and that my original implementation should have continued to work following the update.
The text was updated successfully, but these errors were encountered: