• Resolved eljailer

    (@eljailer)


    I followed your tutorial and it’s working so far.
    There’s a problem, though.
    When I open pdb_record page, values on those dropdowns controlled by js script reset every time. Since I marked those fields as reqired, this makes some problems because the users must reenter values each time they edit record.
    Is there a solution?
    Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter eljailer

    (@eljailer)

    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.
    Plugin Author Roland Barker

    (@xnau)

    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.

    Thread Starter eljailer

    (@eljailer)

    Thank you for your reply.
    I made an error and it messed up pdb_list filtering.
    It works now.
    Thank you again!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Dropdown Selectors: limit selections based on another selector’ is closed to new replies.