Hello,

I'm working on a custom module which use webform to create the forms and I use the hook_options_info to add the options from my database depending on the node_id.
Is it possible to do the same thing on the second dropdown depending on the value of the first one?

Comments

densolis’s picture

than1337,

Just out of curiosity, are you aware that the latest version of webform (7.x-4.0-alph6) is out? I mention this for two reasons:

  1. Webform 4 has same page conditional logic built into it so you no longer need to use webform conditional.
  2. I would hate for you to write custom code for this release only to have to change it again for the new webform release. If you ask if the webform release is "in prduction", then yes - it is on production on webform.com, which is the lead maintainer's commercial site.

If you choose to use webform 7.4, then this question should be posed on the webform issue queue.

That being said, I will be talking with the tedbow, webform_conditional's author, either today or tomorrow. I will ask him this question.

Dennis

than1337’s picture

I will surely be using webform 7.4, so sorry for posting my question here. :/

Thanks for your time and your answor.

densolis’s picture

no worries. webform 7.4 is very new and we are just trying to get the word out.

Glad to be of help.

Dennis

tedbow’s picture

Status: Active » Closed (works as designed)

closing this