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

dave reid’s picture

Project: Module Supports » Webform
Version: 6.x-1.0 » 6.x-2.6

Completely wrong project. :) Moving to the webform issue queue...

kevster’s picture

Sorry 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

AmitV-2’s picture

Subscribing

quicksketch’s picture