Dynamic check boxes
Posted: Thu Mar 25, 2010 4:54 am
Hi All,
Can anyone assist with the necessary code requried to dynamically generate checkboxes based on what has been selected from a previous drop down menu. Also, is there anyway to get those checkboxes to appear at the bottom of the "new Entry" page?
Basically, I have a list of companies. Each company has a number of "Sites". Within a "Contract" table, (New Entry), I'd like to be able to select the company name from a drop down list (This is already in place) and then dynamically generate which "Sites" appear based on that selection. Currently, the sites are being pulled from another table, which also works fine. However, when I eventually have (for example) 5000 Sites, I don't want them all to be listed everytime I want to create a new Contract entry. I only want Sites to be available for selection based on what has been selected in the previous drop down menu.
I guess some javascript magic or similar will be used?
Hope you can help.
Cheers
Paul
Can anyone assist with the necessary code requried to dynamically generate checkboxes based on what has been selected from a previous drop down menu. Also, is there anyway to get those checkboxes to appear at the bottom of the "new Entry" page?
Basically, I have a list of companies. Each company has a number of "Sites". Within a "Contract" table, (New Entry), I'd like to be able to select the company name from a drop down list (This is already in place) and then dynamically generate which "Sites" appear based on that selection. Currently, the sites are being pulled from another table, which also works fine. However, when I eventually have (for example) 5000 Sites, I don't want them all to be listed everytime I want to create a new Contract entry. I only want Sites to be available for selection based on what has been selected in the previous drop down menu.
I guess some javascript magic or similar will be used?
Hope you can help.
Cheers
Paul