Hi,

I don't know why on some of my websites the module is not working anymore (the fields are always visible)
When i compare with another website where it is working, i can see that the part style="display:none" or style="display:block" is not added to my element, instead i get something like that:
<div class="webform-component webform-component-radios" id="webform-component-select1" style="">

Anyone could help me ?

thanks

Comments

tedbow’s picture

Can you check to make sure that all your websites are using the same version of Webform Conditional and Webform?

SophieG’s picture

OK

working on :
webform 6.x-3.15
webform conditional 6.x-1.0-rc2

not working on:
webform 6.x-3.14
webform conditional 6.x-1.0

tedbow’s picture

Thanks.
In both cases 1 of the modules is not the latest version. It would be very helpful if you could test with the latest version of both modules.

webform 6.x-3.15
webform conditional 6.x-1.0

Please let us know if the above works.

Thanks

SophieG’s picture

ok, the thing is that i have people using the webform module right now, so i did not want to update it yet... Anyway, i think i'll have to wait, but as both the module are not in dev or rc and that nothing seems to indicate that there is some conflict...

Thanks for your help

tedbow’s picture

I understand. This would probably better to test if you could work on a local/development environment. Please don't forget to report back if this clears up your problem.

tedbow’s picture

Just FYI, I tested

webform 6.x-3.15
webform conditional 6.x-1.0

and

webform 6.x-3.14
webform conditional 6.x-1.0

On my development site with some test forms.

Both are working for me but different forms may act differently. You might want to check if the pages are having an Javascript errors. Also the other main difference between your sites could be your themes(if the sites are using different themes) and conflicts they might have with "webform 6.x-3.14"

I probably can't help you with this until you are able to update Webform but these might be some things to look at.

tedbow’s picture

Title: Not working anymore... » Not working anymore - webform 6.x-3.14 conflict?
Priority: Normal » Minor

Moving to minor b/c not using latest webform, changing title to reflect

Anonymous’s picture

I got similar problem after upgrading webform conditional 6.x-1.0-rc2 to 6.x-1.0. The webform module is version 6.x-3.15.

tedbow’s picture

@jennifer_1 could check to see if moving back to 6.x-1.0-rc2 fixes your issue?

Anonymous’s picture

Thank you tedbow. Webform conditional 6.x-1.0-rc2 and webform 6.x-3.15 work well. I only upgraded our staging server so it doesn't bother me so much.

tedbow’s picture

Status: Active » Postponed (maintainer needs more info)
Issue tags: +needs-export

If anyone is still experiencing this problem please provide and Webform export.
Instructions here

I am postponing all issues that need a exported Webform example.

grguth’s picture

It will take me a little time tomorrow to work up a small example, however, I was able to quickly generate a test environment with conditional rc2 and webform 3.15 and compare it to conditional 1.0 and webform 3.15. The most obvious issue is that there is no conditional link on a fieldset with 1.0. So when you develop a new form, its not possible to have a conditional fieldset. However, if there is an existing form that already had a conditional fieldset, it continues to work on either combination. Editing that existing form does not show a conditional link on the fieldset, even though its obviously there.

grguth’s picture

Well, that was interesting ...... testing with webform 3.15, conditional 1.0

webform 1:

added select field, two options (cash/check)
added fieldset, conditional link on, set for check
added field, moved into fieldset
result: fieldset did not appear until select for check done -> OK

webform 2:

added fieldset 1, no condition link on
added fieldset 2, no condition link on
added select field, moved into fieldset 1 (cash/check again)
added field, moved into fieldset 2
checked fieldset 2, still no condition link
result: both fieldsets always present, choice irrelevant

webform 3: in case order of creation was an issue

added fieldset 1, no condition link on
added select field, moved into fieldset 1 (cash/check again)
added fieldset 2, no condition link on
added field, moved into fieldset 2
result: both fieldsets always present, choice irrelevant
checked fieldset 2, still no condition link

If you really want the nodes exported I'll be glad to do it, but the error seems to be related to the select field being inside or ourside a fieldset.

I will repeat later on 3.15 / RC1 combo.

tedbow’s picture

grguth thanks for all this info. I will try to get to this in the next couple of days.

grguth’s picture

Testing with webform 3.15, conditional RC1

webform 1:

added select field, two options (cash/check)
added fieldset, conditional link on, set for check
added field, moved into fieldset
result: fieldset did not appear until select for check done -> OK

webform 2:

added fieldset 1, no condition link on
added fieldset 2, no condition link on
added select field, moved into fieldset 1 (cash/check again)
added field, moved into fieldset 2
checked fieldset 2, condition link on, set appropraitely
result: fieldset 2 did not appear until check selected -> OK

webform 3: in case order of creation was an issue

added fieldset 1, no condition link on
added select field, moved into fieldset 1 (cash/check again)
added fieldset 2, condition link on
added field, moved into fieldset 2
result: fieldset 2 did not appear until check selected -> OK

Again, I'll be glad to export nodes, but this doesn't appear to be an execution problem, but a setup problem.

SophieG’s picture

Ok,

i have updates both webform and webform conditional. I have now the latest stable version (3.15 and 3.1), but it is not working more...
I still get these buggy lines :

<div class="webform-component webform-component-radios" id="webform-component-select1" style="">

It seems not all the code is added to these components, but i really don't understant why... I have no js error in my firebug console.

Here is the node export code :

array(
  array(
    'nid' => '857',
    'type' => 'webform',
    'language' => 'fr',
    'uid' => '1',
    'status' => '1',
    'created' => '1330330881',
    'changed' => '1330330881',
    'comment' => '0',
    'promote' => '0',
    'moderate' => '0',
    'sticky' => '0',
    'tnid' => '0',
    'translate' => '0',
    'vid' => '857',
    'revision_uid' => '1',
    'title' => 'test',
    'body' => '',
    'teaser' => '',
    'log' => '',
    'revision_timestamp' => '1330330881',
    'format' => '8',
    'name' => 'admin',
    'picture' => '',
    'data' => 'a:0:{}',
    'og_groups_both' => array(),
    'og_groups' => array(),
    'print_display' => 1,
    'print_display_comment' => 0,
    'print_display_urllist' => 1,
    'print_pdf_display' => 1,
    'print_pdf_display_comment' => 0,
    'print_pdf_display_urllist' => 1,
    'webform' => array(
      'nid' => '857',
      'confirmation' => '',
      'confirmation_format' => '7',
      'redirect_url' => '<confirmation>',
      'status' => '1',
      'block' => '0',
      'teaser' => '0',
      'allow_draft' => '0',
      'auto_save' => '0',
      'submit_notice' => '1',
      'submit_text' => '',
      'submit_limit' => '-1',
      'submit_interval' => '-1',
      'additional_validate' => NULL,
      'additional_submit' => NULL,
      'total_submit_limit' => '-1',
      'total_submit_interval' => '-1',
      'record_exists' => TRUE,
      'roles' => array(
        '0' => '1',
        '1' => '2',
      ),
      'emails' => array(),
      'components' => array(
        '1' => array(
          'nid' => '857',
          'cid' => '1',
          'form_key' => 'te',
          'name' => 'te',
          'type' => 'select',
          'value' => '',
          'extra' => array(
            'title_display' => 'before',
            'private' => 0,
            'aslist' => 0,
            'optrand' => 0,
            'conditional_operator' => '=',
            'items' => 'ok|ok
non|non
',
            'multiple' => 0,
            'custom_keys' => 1,
            'other_option' => NULL,
            'other_text' => 'Autre...',
            'description' => '',
            'options_source' => '',
            'conditional_component' => '',
            'conditional_values' => '',
          ),
          'mandatory' => '0',
          'pid' => '0',
          'weight' => '0',
          'page_num' => 1,
        ),
        '2' => array(
          'nid' => '857',
          'cid' => '2',
          'form_key' => 'ij',
          'name' => 'ij',
          'type' => 'textarea',
          'value' => '',
          'extra' => array(
            'title_display' => 0,
            'private' => 0,
            'resizable' => 1,
            'disabled' => 0,
            'webform_conditional_field_value' => 'ok',
            'webform_conditional_cid' => '1',
            'webform_conditional_operator' => '=',
            'cols' => '',
            'rows' => '',
            'description' => '',
            'attributes' => array(),
            'conditional_component' => '',
            'conditional_operator' => '=',
            'conditional_values' => '',
          ),
          'mandatory' => '0',
          'pid' => '0',
          'weight' => '1',
          'page_num' => 1,
        ),
      ),
    ),
    'last_comment_timestamp' => '1330330881',
    'last_comment_name' => NULL,
    'comment_count' => '0',
    'taxonomy' => array(),
    'files' => array(),
    'menu' => array(
      'link_title' => '',
      'mlid' => 0,
      'plid' => 0,
      'menu_name' => 'primary-links',
      'weight' => 0,
      'options' => array(),
      'module' => 'menu',
      'expanded' => 0,
      'hidden' => 0,
      'has_children' => 0,
      'customized' => 0,
      'parent_depth_limit' => 8,
    ),
    'export_display' => '$display = new ;
$display->layout = \'\';
$display->layout_settings = \'\';
$display->panel_settings = \'\';
$display->cache = \'\';
$display->title = \'\';
$display->content = array();
$display->panels = array();
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = \'0\';
',
    '#_export_node_encode_object' => '1',
  ),
)

Anyone to help me please ?

Thanks

tedbow’s picture

@SophieG, the form you export works for me with webform 3.15. Can you try this form out on a new install of drupal with just webform, webform condtional and node export enabled? It maybe related to another module?

tedbow’s picture

@grguth, If you could export the forms that would be great. Please but a description the body field of what should happen with the form and the problem you are seeing.

Thanks

grguth’s picture

Attached the two webforms.

grguth’s picture

I may not have clearly stated what these two test forms are supposed to do. There is a selection field, and then a fieldset containing another field. Depending on what option is selected in the first field, the fieldset and its field are either displayed or not. In RC2, the fieldset does open and close as the options are selected. In 1.0, this doesn't happen, but as previously mentioned, the problem goes back to building the forms. In RC2, the ability to make the fieldset conditional appears when you build the form, but in 1.0, the option isn't there. Naturally, the webform exports are different because the webform conditional fields are never inserted in 1.0. So yes, the exported nodes are different, but the problem really occurs during webform definition. If you build the form in RC2, and then install 1.0, the webform works just fine. You just can't modify or build an equivalent with 1.0.

tedbow’s picture

@grguth, I see the problem you are describing. It goes away when I am using the 6 dev version. Can you try this version? Does this fix it for you?

tedbow’s picture

Priority: Minor » Normal
Status: Postponed (maintainer needs more info) » Active
grguth’s picture

Downloaded the 1.0+2-dev version last night, tried it today, and its OK.

blackspiraldancer’s picture

Just my 2 cents - I tried with Webform 6.x-3.17 and Webform Conditional 6.x-1.0 with no luck.
After reading this issue, I've replaced Webform Conditional with the 6.x-1.0+2-dev and run the update.php. Everything went in place without editing anything.

blackspiraldancer’s picture

Issue summary: View changes

small mispelling

tabestan’s picture

Issue summary: View changes

I have the same issue.

My webform has a select-option field where one of the option if the trigger. Using the Garland theme, it works as expected. The issue is when I use a custom theme. The field that is supposed to be hidden is visible and there's no display:none/block

<div class="webform-component webform-component-radios" id="webform-component-stuffid" style>

I have the latest version of the webform and webform_conditional modules.

avpaderno’s picture

Issue tags: -needs-export
avpaderno’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Status: Active » Closed (outdated)

I am closing this issue, which is for a not supported Drupal version.