Hello all,

I'm trying to use the webform conditional feature in the alpha6 version.
I'd like to make real conditional dropdown not juste showing or hiding an element, but by rebuilding the depending form element.
Is that going to be developped for the final version?
Or maybe a hook that might be used for that purpose or an option to add on the element thrue hook_form_alter...?

If it's not, could anyone help me with a working example to do what I want please?

Thanks.

Comments

quicksketch’s picture

Category: feature » support

I'm not sure what you mean by rebuilding the form element, but I don't think this isn't possible (or planned) in the 4.x version. If you're using hook_form_alter() already, you can add #ajax properties to the elements to accomplish this functionality, but it's not a built-in feature of Webform to support this kind of thing.

than1337’s picture

Ok. I'll do it with de #ajax properties then.
It would be a nice feature to add in the webform module ^^.

Thanks.

quicksketch’s picture

Status: Active » Fixed

It would be a nice feature to add in the webform module ^^.

Webform doesn't have any fields that would need AJAX-refreshing to begin with, so I'm not sure how adding/using #ajax would provide features to end-users. If there is a particular AJAX-updating request that can be done all through the UI, then please open that as a feature request. Sounds like this issue is answered as a support request.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.