HI,
I have a webform containing 2 select boxes.
I will add/remove the second select box options based on the first select box's selected value.
After adding a new option in the 2nd select box, when i am saving the new value, i am getting the error
"An illegal choice has been detected. Please contact the site administrator."
I am doing it through jquery.
Is there any way to add options dynamically?
thanks in advance,
Developer
Comments
Comment #1
dave reidCompletely wrong project. :) Moving to the webform issue queue...
Comment #2
kevster commentedSorry to hijack your issue but.. - this is very similar to what I need to do with a webform but not sure how to do - are you adding additional jquery code to the form using php tags?
Can you give me any pointers as to how you have acheived this please? I am using drupal 6 with webforms2 and have jquery and ajax installed although I think I need to update jquery.
I need to hide a text field and only show if the drop down select above it has a certain value selected.
Many thanks for any help you can give me...
Edit: I found a javascript/template.php solution to this so problem solved... http://drupal.org/node/252146#comment-1406352
Comment #3
AmitV-2 commentedSubscribing
Comment #4
quicksketch#151603: Can I put options in a select field from a database query?