Is there an on select autofill feature for Join tables?
Is there an on select autofill feature for Join tables?
This question has an accepted answers - jump to answer
This discussion has been closed.
This question has an accepted answers - jump to answer
Answers
You can listen for the
check
event of theselect
input element using a standard jQuery listener - usefield().input()
to get theselect
element to which you would attach the event listener.Another option is to use the
dependent()
method.Regards,
Allan
With a simple Join, I was able to link the two tables.
With this on 'change' event, I was able to get the employee_id on my volunteer.id textBox inside the form.
Now all I need is to get another value like the employee.office into a volunteer.office textBox when I change the same volunteer.name field.
Did you try either the
dependent()
method or using your ownchange
event listener? They could make an Ajax request to get the options (or value if its only one value) for the child field.Allan