I am looking to display a field based on the value of another field on an Add form.
I have a form that has 4 fields, the first 3 are dropdowns with their values related to the ones above. My issue is I want to display the 4th field based on on the selected value of the 3rd field.
I have added an on change field event to the third field but I am struggling to get the selected value of that in the change event.
Based on my experiments, it seems the change event is triggering when I make a change to the first field, and not the third field.
Can anyone suggest what I might be doing wrong?
In the change event, I am trying to access the "this" object in the Java script to get its value using this->getValue() but that does not appear to be providing anything.
I am using phprunner 10.4
SOLVED: Discovered I should have been using crtl.getValue() in place of this->getValue()