Hello,
I have another question: In a grid employees should enter their time entries. By adding a new record the first field is the selection of the client, the second field is the selection of the job. What I’m trying to achieve is that after the client is selected only the related jobs of this client will show as selection for the job field. This should happen without pushing a reload button or something else. Is this possible?
Kind regards, Rudolf
Please refer this sample code:
https://www.gridphp.com/demo/demos/appearance/dropdown-dependent.php
Code: https://www.gridphp.com/demo/demos/appearance/dropdown-dependent.phps 58-85
It loads ‘notes’ dropdown based on changing the ‘clients’ dropdown.
Hi Abu,
After playing around with your code example I can’t find a solution for my exact case. Please see screenshot attached: What I’m trying is that in the Add record modal, if you select a Client (Kunde) you can only choose from his particular jobs (Auftrag) in the second select box. And this should happen without reloading or pushing a button.
Applying your code I get to the point where in the select box Auftrag the list is correctly filtered, but the screen is flickering as if the page is reloading frequently. And I’m not able to select an entry. Can you please help, thanks.
Please share your related grid code on gist.
https://gist.github.com/
To see the flickering issue, you can record a screencast and share link:
https://www.screencastify.com/