A PHPRunner developer wrote to me stating that he was having trouble using the “Select2” plugin “ lookup ” in the “ popup ” window and that he would like to have the “dependency” functionality, similar to the standard PHPRunner “lookup” functionality. .
If you remember, the standard PHPRunner “lookup” has the following functionalities:
Multiple forms of “lookup”. For tables with many values it has the “Ajax” type.
Initial value
The “AutoFill” functionality , which allows other fields to be filled with values recovered from the “lookup”.
The filtering of values by dependence on a previously recovered/reported value.
A few days ago, Sergey provided us with a plugin (Multi-Column) that told us that he had resolved the dependency issue, so I started trying to implement in the “Select2” plugin, the same functionalities that the “lookup” has . PHPRunner standard.
Objetive
Provide the “Select2” plugin with the same functionality as the standard PHPRunner “lookup” component.
DEMO : https://fhumanes.com/select2_dependence
The example has been made using the new plugin “select2_ajax” that is available on the plugins page .
If you are interested in this topic, continue reading the article with this link .