array(
'nid' => '31',
'type' => 'webform',
'language' => '',
'uid' => '1',
'status' => '1',
'created' => '1297114649',
'changed' => '1297173242',
'comment' => '2',
'promote' => '1',
'moderate' => '0',
'sticky' => '1',
'tnid' => '0',
'translate' => '0',
'vid' => '31',
'revision_uid' => '1',
'title' => 'Webform Conditional Demo Form',
'body' => 'This form demonstrates the functionality of the Webform Conditional that I created.
The Webform Conditional module allows you create Conditional Rules for Webform components that appear on the same page of the form. It is dependent on the Webform module.
The core Webform module allows you to make Conditional Rules but a component can only be conditional on a component that appears in a previous page of the form. Webform Conditional allows components to be conditional on Select options components that appear above it on the same page.',
'teaser' => 'This form demonstrates the functionality of the Webform Conditional that I created.
The Webform Conditional module allows you create Conditional Rules for Webform components that appear on the same page of the form. It is dependent on the Webform module.
',
'log' => '',
'revision_timestamp' => '1297173242',
'format' => '1',
'name' => 'Ted Bowman',
'picture' => '',
'data' => 'a:2:{s:7:"contact";i:0;s:13:"form_build_id";s:37:"form-94352cfef1e54145fd8820db13733390";}',
'path' => 'content/drupal/webform-conditional-demo-form',
'webform' => array(
'nid' => '31',
'confirmation' => '',
'confirmation_format' => '0',
'redirect_url' => '',
'teaser' => '0',
'allow_draft' => '0',
'submit_notice' => '1',
'submit_text' => '',
'submit_limit' => '-1',
'submit_interval' => '-1',
'additional_validate' => NULL,
'additional_submit' => NULL,
'block' => '0',
'status' => '1',
'auto_save' => '0',
'record_exists' => TRUE,
'roles' => array(
'0' => '1',
'1' => '2',
),
'emails' => array(),
'components' => array(
'18' => array(
'nid' => '31',
'cid' => '18',
'form_key' => 'show_page_2_question',
'name' => 'Show Page 2 Question',
'type' => 'select',
'value' => '',
'extra' => array(
'description' => 'This check box controls a textfield on page 2 that inside a fieldset. You have to check the box on page 2 to see the field set though. So effectively you have the page 2 check box will only show up if both checkboxes are checked.',
'items' => 'page2|Show page 2 questions',
'multiple' => 1,
'title_display' => 0,
'aslist' => 0,
'optrand' => 0,
'conditional_component' => '1',
'conditional_operator' => '=',
'other_option' => NULL,
'other_text' => 'Other...',
'custom_keys' => FALSE,
'options_source' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '12',
'page_num' => 1,
),
'1' => array(
'nid' => '31',
'cid' => '1',
'form_key' => 'trigger_select_field',
'name' => 'Trigger Select Field',
'type' => 'select',
'value' => '',
'extra' => array(
'description' => 'This is single select listbox that will show/hide 2 fieldsets. ',
'items' => 'f1|Show Fieldset 1
f2|Show Fieldset 2
both|Show Both Fieldsets',
'multiple' => 0,
'title_display' => 0,
'aslist' => 1,
'optrand' => 0,
'conditional_operator' => '=',
'other_option' => NULL,
'other_text' => 'Other...',
'custom_keys' => FALSE,
'options_source' => '',
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '13',
'page_num' => 1,
),
'2' => array(
'nid' => '31',
'cid' => '2',
'form_key' => 'fieldset_1',
'name' => 'Fieldset 1',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'description' => 'All the components below will be shown and hid. If a nested component is mandatory then it will only be mandatory if shown.',
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'conditional_operator' => '=',
'webform_conditional_cid' => '1',
'webform_conditional_operator' => '=',
'webform_conditional_field_value' => 'f1
both',
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '14',
'page_num' => 1,
),
'4' => array(
'nid' => '31',
'cid' => '4',
'form_key' => 'mandatory_text_field',
'name' => 'Mandatory Text Field',
'type' => 'textfield',
'value' => '',
'extra' => array(
'description' => 'This field will be mandatory if shown',
'title_display' => 0,
'disabled' => 0,
'unique' => 0,
'conditional_operator' => '=',
'webform_conditional_cid' => '0',
'webform_conditional_operator' => '=',
'width' => '',
'maxlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'attributes' => array(),
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '1',
'pid' => '2',
'weight' => '3',
'page_num' => 1,
),
'3' => array(
'nid' => '31',
'cid' => '3',
'form_key' => 'fieldset_2',
'name' => 'Fieldset 2',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'conditional_operator' => '=',
'webform_conditional_cid' => '1',
'webform_conditional_operator' => '=',
'webform_conditional_field_value' => 'f2
both',
'description' => '',
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '15',
'page_num' => 1,
),
'5' => array(
'nid' => '31',
'cid' => '5',
'form_key' => 'mandatory_select',
'name' => 'Mandatory select',
'type' => 'select',
'value' => '',
'extra' => array(
'items' => 'hide|Hide Bottom text area
nested|Show Nested Fieldset
innested|Show field inside nested fieldset
bottom|Show fields at bottom of this form',
'multiple' => 1,
'title_display' => 0,
'aslist' => 0,
'optrand' => 0,
'conditional_operator' => '=',
'webform_conditional_cid' => '0',
'webform_conditional_operator' => '=',
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'custom_keys' => FALSE,
'options_source' => '',
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '1',
'pid' => '3',
'weight' => '4',
'page_num' => 1,
),
'6' => array(
'nid' => '31',
'cid' => '6',
'form_key' => 'nested_fieldset',
'name' => 'Nested Fieldset',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'description' => 'More nested fun!',
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'conditional_operator' => '=',
'webform_conditional_cid' => '5',
'webform_conditional_operator' => '=',
'webform_conditional_field_value' => 'nested',
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '3',
'weight' => '6',
'page_num' => 1,
),
'7' => array(
'nid' => '31',
'cid' => '7',
'form_key' => 'not_your_real_email',
'name' => 'Not your real email',
'type' => 'email',
'value' => '',
'extra' => array(
'description' => 'Just to show email validation. If you fill out a invalid email and then hide this component it won\'t throw an error.',
'title_display' => 0,
'disabled' => 0,
'unique' => 0,
'conditional_operator' => '=',
'webform_conditional_cid' => '0',
'webform_conditional_operator' => '=',
'width' => '',
'attributes' => array(),
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '6',
'weight' => '5',
'page_num' => 1,
),
'8' => array(
'nid' => '31',
'cid' => '8',
'form_key' => 'dependent_nested',
'name' => 'Dependent Nested',
'type' => 'textfield',
'value' => '',
'extra' => array(
'title_display' => 0,
'disabled' => 0,
'unique' => 0,
'conditional_operator' => '=',
'webform_conditional_cid' => '5',
'webform_conditional_operator' => '=',
'webform_conditional_field_value' => 'innested',
'width' => '',
'maxlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'description' => '',
'attributes' => array(),
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '6',
'weight' => '6',
'page_num' => 1,
),
'9' => array(
'nid' => '31',
'cid' => '9',
'form_key' => 'markup_too',
'name' => 'Markup Too',
'type' => 'markup',
'value' => 'This markup and the fields below are dependent on Mandatory Select',
'extra' => array(
'conditional_operator' => '=',
'format' => '1',
'webform_conditional_cid' => '5',
'webform_conditional_operator' => '=',
'webform_conditional_field_value' => 'bottom',
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '16',
'page_num' => 1,
),
'10' => array(
'nid' => '31',
'cid' => '10',
'form_key' => 'a_date',
'name' => 'Greatest Date',
'type' => 'date',
'value' => '',
'extra' => array(
'description' => 'What was the greatest date ever?',
'timezone' => 'user',
'title_display' => 0,
'datepicker' => 1,
'year_textfield' => 0,
'year_start' => '-2',
'year_end' => '+2',
'conditional_operator' => '=',
'webform_conditional_cid' => '5',
'webform_conditional_operator' => '=',
'webform_conditional_field_value' => 'bottom',
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '1',
'pid' => '0',
'weight' => '17',
'page_num' => 1,
),
'11' => array(
'nid' => '31',
'cid' => '11',
'form_key' => 'hide_this_field',
'name' => 'Hide This Field',
'type' => 'textarea',
'value' => '',
'extra' => array(
'title_display' => 0,
'resizable' => 1,
'disabled' => 0,
'webform_conditional_field_value' => 'hide',
'webform_conditional_cid' => '5',
'webform_conditional_operator' => '!=',
'cols' => '',
'rows' => '',
'description' => '',
'attributes' => array(),
'conditional_component' => '',
'conditional_operator' => '=',
'conditional_values' => '',
),
'mandatory' => '1',
'pid' => '0',
'weight' => '18',
'page_num' => 1,
),
'13' => array(
'nid' => '31',
'cid' => '13',
'form_key' => 'page_2',
'name' => 'Page 2',
'type' => 'pagebreak',
'value' => '',
'extra' => array(
'conditional_operator' => '=',
'conditional_component' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '19',
'page_num' => 2,
),
'14' => array(
'nid' => '31',
'cid' => '14',
'form_key' => 'single_check',
'name' => 'Single Check Box',
'type' => 'select',
'value' => '',
'extra' => array(
'items' => 'checked|Checked',
'multiple' => 1,
'title_display' => 0,
'aslist' => 0,
'optrand' => 0,
'conditional_component' => '1',
'conditional_operator' => '=',
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'custom_keys' => FALSE,
'options_source' => '',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '20',
'page_num' => 2,
),
'16' => array(
'nid' => '31',
'cid' => '16',
'form_key' => 'fieldset_3',
'name' => 'Fieldset 3',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'webform_conditional_field_value' => 'checked',
'webform_conditional_cid' => '14',
'webform_conditional_operator' => '=',
'description' => '',
'conditional_component' => '',
'conditional_operator' => '=',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '21',
'page_num' => 2,
),
'15' => array(
'nid' => '31',
'cid' => '15',
'form_key' => 'markup_too_2',
'name' => 'Markup Too 2',
'type' => 'markup',
'value' => 'Some more Markup',
'extra' => array(
'format' => '1',
'conditional_component' => '',
'conditional_operator' => '=',
'conditional_values' => '',
),
'mandatory' => '0',
'pid' => '16',
'weight' => '10',
'page_num' => 2,
),
'17' => array(
'nid' => '31',
'cid' => '17',
'form_key' => 'controlled_from_page_1',
'name' => 'Controlled From Page 1',
'type' => 'textfield',
'value' => '',
'extra' => array(
'title_display' => 0,
'disabled' => 0,
'unique' => 0,
'conditional_component' => '18',
'conditional_operator' => '=',
'conditional_values' => 'page2',
'width' => '',
'maxlength' => '',
'field_prefix' => '',
'field_suffix' => '',
'description' => '',
'attributes' => array(),
),
'mandatory' => '0',
'pid' => '16',
'weight' => '11',
'page_num' => 2,
),
'19' => array(
'nid' => '31',
'cid' => '19',
'form_key' => 'no_textfield',
'name' => 'no textfield',
'type' => 'markup',
'value' => 'You will be able to see the textfield on this page b/c you didn\'t click the top checkbox on page 1',
'extra' => array(
'conditional_component' => '18',
'conditional_operator' => '!=',
'conditional_values' => 'page2',
'format' => '1',
),
'mandatory' => '0',
'pid' => '0',
'weight' => '22',
'page_num' => 2,
),
),
),
'last_comment_timestamp' => '1298924316',
'last_comment_name' => '',
'comment_count' => '3',
'taxonomy' => array(
'2' => array(
'3' => '3',
),
),
'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_node_encode_object' => '1',
)