When I edit a select form component, in its conditional rules, my very first textfield in my webform, labeled "Applicant Organization (full legal name)", appears instead as "Applicant Organization (full legOE name)".

All other component names are OK, and I don't see how I could have gotten special characters in there by myself.

Comments

quicksketch’s picture

Could you provide steps on how to reproduce? Webform doesn't do any sort of modification to your label names.

scott m. sanders’s picture

Title: Legal = LegOE? » Conditional Rules Component Name Gibberish
StatusFileSize
new91.93 KB

Hmm, now I'm getting this...

scott m. sanders’s picture

Priority: Minor » Normal

This is happening on both my webforms -- the latter prevents me from creating a rule for a new component on page 5 based on one back on page 1 or 2 for example...

scott m. sanders’s picture

I had to redo page 1 for other reasons -- now most all components appear in this list right after the last markup one, which contains some heavy markup.

P.S. I'm using the WYSIWYG module w/ markup if that makes a difference...

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

Hey Scott, I still haven't seen this behavior personally. It may be another module doing something weird, or something that only comes up under certain circumstances. In order to fix this, I need to be able to reproduce it from a scratch installation of Drupal.

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Please reopen if you can give steps on how to reproduce this problem. I still haven't seen it and don't understand how it would occur.

healthent’s picture

Status: Closed (fixed) » Active
Issue tags: +ohgodkillmenow
StatusFileSize
new26.91 KB
new27.1 KB
new22.42 KB
new52.64 KB
new44.91 KB
new550.61 KB

I have the same issue. It's happened consistently on two seperate computers (vms), and I can have it happen each time I revert to a snapshot prior to installing webforms.

I've attached the relevant material that shows my config. I don't do things in any particular order except for the upgrade of Webforms 2.9 to 3.xbeta5, which I leave to last.

Interesting to note is that Type of Employment is what the first two, and only two working, conditional rules are evaluated against. After that, no more conditional rules are working, though I haven't added more after them to see if that is really the case.

Another interesting thing is that the higher up in the component order a conditional rule is, the less garbled the selection list in the conditional rules component dropdown is. I've shown that in the pictures also.

This issue has me tearing my hair out, it's happened to me every single time I've made a form in this system in the last week!

Edit:
I've just found that if I take the first conditional rule out of it's field set, the conditions start to work. I put it back in the field set, the condition rule fails to activate.

This would be the "Extension" component and the fieldset is "Phone".

Edit 2:
Are more than one conditional rule possible? For example, I have a fieldset that I want to display on the last page if certain conditions are met but these conditions are in different components spread around the form. The best I can do at this point is create 5 clones of the same fieldset... and I'm not even sure yet if that works.

John Danks’s picture

I'm seeing this with 6.x-3.0-beta5.

Enable Webform for Pages
Create a Page called Test 1, save and go to the Webform section

Add a field called Select 1, Select options type, mandatory
Set options to option1|Option 1 and option2|Option 2

Add a field called Select 2, Select options type, mandatory
Set options to option1|Option 1 and option2|Option 2

Add a pagebreak called firstbreak

Add a field called Select 3, Select options type, mandatory
Set options to option1|Option 1 and option2|Option 2
Under Conditional Rules, Select 2 is one of 'option2'

Add a field called Select 4, Select options type, mandatory
Set options to option1|Option 1 and option2|Option 2
Under Conditional Rules, Select 2 is one of 'option2'

Add a pagebreak called secondbreak

Add a field called Select 5, Select options type, mandatory
Set options to option1|Option 1 and option2|Option 2
Under Conditional rules, look at the choices for Component

It gives two options:
Select 1
SeleSS 2

If you go back and rename Select 3 to Foo and Select 4 to Bar and look at the Conditional rules for Select 5 you'll see:
Select 1
SeleFB 2

So somehow the first letters of some of the fields are being inserted into the text in that list. I took a look at the module code but I have very little experience with PHP so I couldn't make much sense of it. My best guess is something to do with the indentation. Also note that the Foo and Bar fields are the 4th and 5th fields in the form, and the FB letters in the string are at the 4th and 5th indices in the "SeleFB 2" string.

quicksketch’s picture

Version: 6.x-3.0-beta2 » 6.x-3.0-beta6

I haven't had a look at this problem yet, meaning it's probably still in the beta6 version. Thanks for the fantastic report John Danks.

quicksketch’s picture

Status: Active » Closed (duplicate)

This is caused by #857808: Missing options in Component selection list in the Conditional Rules fieldset.. We'll consolidate with that issue since it has a patch to review.