Hi!
I cannot set component of type Number, in conditional section. Textfiled is ok, but it isn't.
(I attached a screenshot, the "szoroz" is a Number component is my webform)
Please help what can I do.
Thank You!
Lajos Szanto

Comments

sumitmadan’s picture

Category: Bug report » Feature request
Status: Active » Needs review
StatusFileSize
new426 bytes

This should be a feature request. Adding a patch for this feature.

Status: Needs review » Needs work

The last submitted patch, 1: a_component_of_type-2498699-1.patch, failed testing.

sumitmadan’s picture

Version: 7.x-4.9 » 7.x-4.x-dev

Status: Needs work » Needs review
danchadwick’s picture

Priority: Major » Normal
Issue tags: -webform, -number component
szantol’s picture

Thank you!
Lajos

danchadwick’s picture

Status: Needs review » Needs work

If the number component is configured as a list, I'm pretty sure the jQuery won't work correctly with significant changes, no? I'm not sure what other options might be problematic.

I didn't include number, date, and time in SET actions for this reason.

What has been tested?

sumitmadan’s picture

Status: Needs work » Needs review

It is working fine without any jquery issue. But I have a doubt, It is disabling the field after setting the value. So in case of select list, if there is no value to set then it will disable the select list with no value.

Please close if there is an issue to keep this feature for number component.

danchadwick’s picture

Status: Needs review » Fixed

I am okay with the user needing to set reasonable values.

It is proper for the form element to be disabled when it is being set. There is no point in letting the user change the value when webform will just set it back again.

@szantol -- Thanks for the patch. It makes it easier for me if they are named according to the Drupal standard:
https://www.drupal.org/patch/submit

Committed to 7.x-4.x and 8.x.

  • DanChadwick committed 29480f3 on 8.x-4.x authored by sumitmadan
    Issue #2498699 by sumitmadan: A component of type Number cannot be "set...

Status: Fixed » Closed (fixed)

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