Sorry to say, this messed up my whole database.
I find this feature very usefull so I followed each step of your tutorial carefully.
After modifying your javascript code, I put it on pdb_signup and pdb_record pages.
As I mentioned in my previous post, the code on the pdb_record page isn’t working properly. I think the problem is in javaScript code.
After putting all this to work, the fields controlled by javascript changed values to first parent(optgroup) and first child of the first parent. When I say the fields changed values, I mean the fields in ALL records.
I set up something like this:
1st parent (1st optgroup): 1st Floor
child: roomNo I/1, roomNo I/2 etc
2nd parent (2nd optgroup): 2nd Floor
child: roomNo II/2, room II/2 etc
…
Now, all the floor fields and all the room fields in all the records are set to 1st Floor, roomNo I/1.
I checked the PDB general settings, and Manage PDB fields settings, but found no issue. The fields are text-line fields, CSV and Signup checked.
Also, the problem mentioned in previous post persists…
I hope there’s a solution to this, because I really find this very useful.
Thank you!
-
This reply was modified 8 years, 3 months ago by
eljailer.
-
This reply was modified 8 years, 3 months ago by
eljailer.
It isn’t possible for that javascript to change records, it can only change values on a particular web page, so any changes would be limited to the one record that was open on that page.
Without looking at the page, I can’t say what the problem is. This tutorial is meant to show a specific approach to getting two controls to interact, it depends on the values in the two dropdowns being structured in a particular way, otherwise it won’t work.
Thank you for your reply.
I made an error and it messed up pdb_list filtering.
It works now.
Thank you again!