Hi,

I try to use #states and show an element when sliderfield is filled. While debugging I found that the module uses hidden input element inside "webform-sliderfield" wrapper. States does not work when this input is populated. It happens because there is no keyup even, so I created a small patch that adds it.

Thanks in advance.

CommentFileSizeAuthor
sliderfield-fix-bug-with-fapi-states.patch512 bytesaprogs

Comments

manuel garcia’s picture

Status: Needs review » Needs work

While the patch looks like it might work for the use case in the description, it doesn't fix the underlining problem, which is that #states don't work.

For example, if the slider field should be disabled until another field is populated, etc.

manuel garcia’s picture

Status: Needs work » Needs review

hUMM Nevermind me, I've just tested the disabled states on the example module and it does work, so at least that works.

  • sinasalek committed e6a5041 on 7.x-2.x authored by aprogs
    [#2451769] Sliderfield does not work with FAPI #states
    
sinasalek’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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

sinasalek’s picture