Dynamic Form baside on if a yours has put a check in the box.
Posted on 2003-12-01
I have a list of upgrade option that a user can chose from. Like hard drive, memeory, monitors and so on. On the page it will have a list of check boxes for each option. The dynamic part come in at time of when check boxis is clicked. Ok, a user clicks on HD, saying he wants to upgrade his hardrive, at the point I would like to create a NEW list of check boxis basis on the option we have for HD sizes in our database. The user then clicks on the size, sizes they would like. After I have there specific upgrades i can take them to a new page to enter the quanity. I know how to pull the data data form the froms after they are filled just now how to get them on the page.
Right now my from actions are posting to the same page. Then i have cfif asking what is deffenid and then the data is made baised on that.
The problem is I cant use a form method to call a funtion that would create the new forms basad on the cfquery informaiton. I'm not really even sure how to get a method to run a cfquery.
Can i create my own functions in CF to be called by a from method. If I created my own tag, something, how i get it to run with the onclick.
I haven't see to many other peoples CF codeing so I'm really kinda lost on this one. I know how it should work but not sure how to do it.
I know is a tough one. It seems hard to bring the two together.
Thanks for your help