Skip to main content
Known Participant
March 4, 2009
Question

CF/AJAX Cascading Dropdowns

  • March 4, 2009
  • 1 reply
  • 689 views
Hi,
I FINALLY got the CF/AJAX/related dropdowns to work! We used the CFC's to return an array where the first dimention was the "value" and the 2nd was the discription (as indicated by Forta).

Now.....If I process the selection and determine an error condition (say it was previously added to the cart), How do I return the page marking the selected 2nd dropdown as "selected" as I am not building this explicity - only passing an array from the bound CFC?

Note sure if I am making myself clear?

Thanks in advance,
Hefterr
    This topic has been closed for replies.

    1 reply

    Inspiring
    March 4, 2009
    cfselect has a selected attribute. You simply need to find a way to use it.
    hefterrAuthor
    Known Participant
    March 5, 2009
    Dan,
    Thanks for responding. The problem is that I'm not actually building the <option....> statements as part of the list. This is being down by the data passed to CF/AJAX and it only allows for a value/descritpion (I thik)

    Rich