Skip to content

Instantly share code, notes, and snippets.

@jitendrapurohit
Created February 23, 2018 09:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jitendrapurohit/d70697eaeaaa06218516fcfd447880da to your computer and use it in GitHub Desktop.
Save jitendrapurohit/d70697eaeaaa06218516fcfd447880da to your computer and use it in GitHub Desktop.
array(
(object) array(
'vid' => '4',
'uid' => '1',
'title' => 'Select/Radio field Conditionals test',
'log' => '',
'status' => '0',
'comment' => '1',
'promote' => '0',
'sticky' => '0',
'vuuid' => '142621fc-5d93-466d-9803-94ac03069c94',
'nid' => '4',
'type' => 'webform',
'language' => 'und',
'created' => '1519378682',
'changed' => '1519378934',
'tnid' => '0',
'translate' => '0',
'uuid' => '2a43dce1-de0e-4c39-9aab-0293c47eeeae',
'revision_timestamp' => '1519378934',
'revision_uid' => '1',
'rdf_mapping' => array(
'rdftype' => array(
'sioc:Item',
'foaf:Document',
),
'title' => array(
'predicates' => array(
'dc:title',
),
),
'created' => array(
'predicates' => array(
'dc:date',
'dc:created',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'changed' => array(
'predicates' => array(
'dc:modified',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
'body' => array(
'predicates' => array(
'content:encoded',
),
),
'uid' => array(
'predicates' => array(
'sioc:has_creator',
),
'type' => 'rel',
),
'name' => array(
'predicates' => array(
'foaf:name',
),
),
'comment_count' => array(
'predicates' => array(
'sioc:num_replies',
),
'datatype' => 'xsd:integer',
),
'last_activity' => array(
'predicates' => array(
'sioc:last_activity_date',
),
'datatype' => 'xsd:dateTime',
'callback' => 'date_iso8601',
),
),
'webform' => array(
'nid' => '4',
'next_serial' => '1',
'confirmation' => '',
'confirmation_format' => NULL,
'redirect_url' => '<confirmation>',
'status' => '1',
'block' => '0',
'allow_draft' => '0',
'auto_save' => '0',
'submit_notice' => '1',
'confidential' => '0',
'submit_text' => '',
'submit_limit' => '-1',
'submit_interval' => '-1',
'total_submit_limit' => '-1',
'total_submit_interval' => '-1',
'progressbar_bar' => '1',
'progressbar_page_number' => '0',
'progressbar_percent' => '0',
'progressbar_pagebreak_labels' => '1',
'progressbar_include_confirmation' => '1',
'progressbar_label_first' => 'Start',
'progressbar_label_confirmation' => 'Complete',
'preview' => '0',
'preview_next_button_label' => '',
'preview_prev_button_label' => '',
'preview_title' => '',
'preview_message' => '',
'preview_message_format' => NULL,
'preview_excluded_components' => array(),
'commerce_webform_new_order' => '0',
'record_exists' => TRUE,
'roles' => array(
'1',
'2',
),
'emails' => array(
1 => array(
'nid' => '4',
'eid' => '1',
'email' => 'pd@fuzion.co.nz',
'subject' => 'default',
'from_name' => 'default',
'from_address' => 'default',
'template' => '[submission:values:usa1][submission:values:nz1]',
'excluded_components' => array(),
'html' => '0',
'attachments' => '0',
'exclude_empty' => '0',
'extra' => FALSE,
'status' => '1',
),
2 => array(
'nid' => '4',
'eid' => '2',
'email' => '6',
'subject' => 'default',
'from_name' => 'default',
'from_address' => 'default',
'template' => 'default',
'excluded_components' => array(),
'html' => '0',
'attachments' => '0',
'exclude_empty' => '0',
'extra' => array(
'email_mapping' => array(
1 => '[submission:values:email_me]',
),
),
'status' => '1',
),
),
'components' => array(
19 => array(
'nid' => 4,
'cid' => '19',
'pid' => '0',
'form_key' => 'change_a_radio',
'name' => 'Change a Radio',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'description_above' => 0,
'private' => 0,
'css_classes' => '',
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'description' => '',
),
'required' => '0',
'weight' => '10',
'page_num' => 1,
),
22 => array(
'nid' => 4,
'cid' => '22',
'pid' => '19',
'form_key' => 'list_radio',
'name' => 'List Radio',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'description_above' => 0,
'private' => 0,
'css_classes' => '',
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'description' => '',
),
'required' => '0',
'weight' => '12',
'page_num' => 1,
),
23 => array(
'nid' => 4,
'cid' => '23',
'pid' => '22',
'form_key' => 'people',
'name' => 'people',
'type' => 'select',
'value' => '',
'extra' => array(
'title_display' => 'inline',
'description_above' => 0,
'private' => 0,
'wrapper_classes' => '',
'css_classes' => '',
'aslist' => 1,
'items' => "1|kaylie\n2|jitendra\n3|gemma\n",
'multiple' => 0,
'custom_keys' => 0,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '0',
'page_num' => 1,
),
24 => array(
'nid' => 4,
'cid' => '24',
'pid' => '22',
'form_key' => 'country',
'name' => 'country',
'type' => 'select',
'value' => '',
'extra' => array(
'title_display' => 'inline',
'description_above' => 0,
'private' => 0,
'wrapper_classes' => '',
'css_classes' => '',
'aslist' => 0,
'items' => "1|india\n2|nz\n",
'multiple' => 0,
'custom_keys' => 0,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '1',
'page_num' => 1,
),
10 => array(
'nid' => 4,
'cid' => '10',
'pid' => '19',
'form_key' => 'radio_radio',
'name' => 'Radio Radio',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'description_above' => 0,
'private' => 0,
'css_classes' => '',
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'description' => '',
),
'required' => '0',
'weight' => '12',
'page_num' => 1,
),
29 => array(
'nid' => 4,
'cid' => '29',
'pid' => '10',
'form_key' => 'people2',
'name' => 'people2',
'type' => 'select',
'value' => '',
'extra' => array(
'title_display' => 'inline',
'description_above' => 0,
'private' => 0,
'wrapper_classes' => '',
'css_classes' => '',
'aslist' => 0,
'items' => "1|peter\n2|torrance\n",
'multiple' => 0,
'custom_keys' => 0,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '2',
'page_num' => 1,
),
30 => array(
'nid' => 4,
'cid' => '30',
'pid' => '10',
'form_key' => 'country3',
'name' => 'country2',
'type' => 'select',
'value' => '',
'extra' => array(
'title_display' => 'inline',
'description_above' => 0,
'private' => 0,
'wrapper_classes' => '',
'css_classes' => '',
'aslist' => 0,
'items' => "1|nz\n2|australia\n",
'multiple' => 0,
'custom_keys' => 0,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '3',
'page_num' => 1,
),
20 => array(
'nid' => 4,
'cid' => '20',
'pid' => '0',
'form_key' => 'change_a_list',
'name' => 'Change a List',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'description_above' => 0,
'private' => 0,
'css_classes' => '',
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'description' => '',
),
'required' => '0',
'weight' => '12',
'page_num' => 1,
),
28 => array(
'nid' => 4,
'cid' => '28',
'pid' => '20',
'form_key' => 'list_list',
'name' => 'List List',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'description_above' => 0,
'private' => 0,
'css_classes' => '',
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'description' => '',
),
'required' => '0',
'weight' => '4',
'page_num' => 1,
),
1 => array(
'nid' => 4,
'cid' => '1',
'pid' => '28',
'form_key' => 'people',
'name' => 'people',
'type' => 'select',
'value' => '',
'extra' => array(
'title_display' => 'inline',
'description_above' => 0,
'private' => 0,
'wrapper_classes' => '',
'css_classes' => '',
'aslist' => 1,
'items' => "1|kaylie\n2|jitendra\n3|gemma\n",
'multiple' => 0,
'custom_keys' => 0,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '4',
'page_num' => 1,
),
7 => array(
'nid' => 4,
'cid' => '7',
'pid' => '28',
'form_key' => 'country',
'name' => 'country',
'type' => 'select',
'value' => '',
'extra' => array(
'title_display' => 'inline',
'description_above' => 0,
'private' => 0,
'wrapper_classes' => '',
'css_classes' => '',
'aslist' => 1,
'items' => "1|india\n2|nz\n",
'multiple' => 0,
'custom_keys' => 0,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '5',
'page_num' => 1,
),
11 => array(
'nid' => 4,
'cid' => '11',
'pid' => '20',
'form_key' => 'radio_list',
'name' => 'Radio List',
'type' => 'fieldset',
'value' => '',
'extra' => array(
'description_above' => 0,
'private' => 0,
'css_classes' => '',
'title_display' => 0,
'collapsible' => 0,
'collapsed' => 0,
'description' => '',
),
'required' => '0',
'weight' => '4',
'page_num' => 1,
),
8 => array(
'nid' => 4,
'cid' => '8',
'pid' => '11',
'form_key' => 'people2',
'name' => 'people2',
'type' => 'select',
'value' => '',
'extra' => array(
'title_display' => 'inline',
'description_above' => 0,
'private' => 0,
'wrapper_classes' => '',
'css_classes' => '',
'aslist' => 0,
'items' => "1|peter\n2|torrance\n",
'multiple' => 0,
'custom_keys' => 0,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '2',
'page_num' => 1,
),
9 => array(
'nid' => 4,
'cid' => '9',
'pid' => '11',
'form_key' => 'country3',
'name' => 'country2',
'type' => 'select',
'value' => '',
'extra' => array(
'title_display' => 'inline',
'description_above' => 0,
'private' => 0,
'wrapper_classes' => '',
'css_classes' => '',
'aslist' => 1,
'items' => "1|nz\n2|australia\n",
'multiple' => 0,
'custom_keys' => 0,
'empty_option' => '',
'optrand' => 0,
'other_option' => NULL,
'other_text' => 'Other...',
'description' => '',
'options_source' => '',
'analysis' => TRUE,
),
'required' => '0',
'weight' => '3',
'page_num' => 1,
),
),
'conditionals' => array(
5 => array(
'nid' => '4',
'rgid' => '5',
'andor' => NULL,
'weight' => '-5',
'rules' => array(
array(
'nid' => '4',
'rgid' => '5',
'rid' => '0',
'source_type' => 'component',
'source' => '23',
'operator' => 'equal',
'value' => '2',
),
),
'actions' => array(
array(
'nid' => '4',
'rgid' => '5',
'aid' => '0',
'target_type' => 'component',
'target' => '24',
'invert' => '0',
'action' => 'set',
'argument' => '1',
),
),
),
0 => array(
'nid' => '4',
'rgid' => '0',
'andor' => 'or',
'weight' => '-4',
'rules' => array(
array(
'nid' => '4',
'rgid' => '0',
'rid' => '0',
'source_type' => 'component',
'source' => '1',
'operator' => 'equal',
'value' => '1',
),
array(
'nid' => '4',
'rgid' => '0',
'rid' => '1',
'source_type' => 'component',
'source' => '1',
'operator' => 'equal',
'value' => '3',
),
),
'actions' => array(
array(
'nid' => '4',
'rgid' => '0',
'aid' => '0',
'target_type' => 'component',
'target' => '7',
'invert' => '0',
'action' => 'set',
'argument' => '2',
),
),
),
4 => array(
'nid' => '4',
'rgid' => '4',
'andor' => 'or',
'weight' => '-4',
'rules' => array(
array(
'nid' => '4',
'rgid' => '4',
'rid' => '0',
'source_type' => 'component',
'source' => '23',
'operator' => 'equal',
'value' => '1',
),
array(
'nid' => '4',
'rgid' => '4',
'rid' => '1',
'source_type' => 'component',
'source' => '23',
'operator' => 'equal',
'value' => '3',
),
),
'actions' => array(
array(
'nid' => '4',
'rgid' => '4',
'aid' => '0',
'target_type' => 'component',
'target' => '24',
'invert' => '0',
'action' => 'set',
'argument' => '2',
),
),
),
6 => array(
'nid' => '4',
'rgid' => '6',
'andor' => NULL,
'weight' => '-4',
'rules' => array(
array(
'nid' => '4',
'rgid' => '6',
'rid' => '0',
'source_type' => 'component',
'source' => '29',
'operator' => 'equal',
'value' => '1',
),
),
'actions' => array(
array(
'nid' => '4',
'rgid' => '6',
'aid' => '0',
'target_type' => 'component',
'target' => '30',
'invert' => '0',
'action' => 'set',
'argument' => '1',
),
),
),
1 => array(
'nid' => '4',
'rgid' => '1',
'andor' => NULL,
'weight' => '-3',
'rules' => array(
array(
'nid' => '4',
'rgid' => '1',
'rid' => '0',
'source_type' => 'component',
'source' => '1',
'operator' => 'equal',
'value' => '2',
),
),
'actions' => array(
array(
'nid' => '4',
'rgid' => '1',
'aid' => '0',
'target_type' => 'component',
'target' => '7',
'invert' => '0',
'action' => 'set',
'argument' => '1',
),
),
),
7 => array(
'nid' => '4',
'rgid' => '7',
'andor' => NULL,
'weight' => '-3',
'rules' => array(
array(
'nid' => '4',
'rgid' => '7',
'rid' => '0',
'source_type' => 'component',
'source' => '29',
'operator' => 'equal',
'value' => '2',
),
),
'actions' => array(
array(
'nid' => '4',
'rgid' => '7',
'aid' => '0',
'target_type' => 'component',
'target' => '30',
'invert' => '0',
'action' => 'set',
'argument' => '2',
),
),
),
2 => array(
'nid' => '4',
'rgid' => '2',
'andor' => NULL,
'weight' => '-2',
'rules' => array(
array(
'nid' => '4',
'rgid' => '2',
'rid' => '0',
'source_type' => 'component',
'source' => '8',
'operator' => 'equal',
'value' => '1',
),
),
'actions' => array(
array(
'nid' => '4',
'rgid' => '2',
'aid' => '0',
'target_type' => 'component',
'target' => '9',
'invert' => '0',
'action' => 'set',
'argument' => '1',
),
),
),
3 => array(
'nid' => '4',
'rgid' => '3',
'andor' => NULL,
'weight' => '-1',
'rules' => array(
array(
'nid' => '4',
'rgid' => '3',
'rid' => '0',
'source_type' => 'component',
'source' => '8',
'operator' => 'equal',
'value' => '2',
),
),
'actions' => array(
array(
'nid' => '4',
'rgid' => '3',
'aid' => '0',
'target_type' => 'component',
'target' => '9',
'invert' => '0',
'action' => 'set',
'argument' => '2',
),
),
),
),
),
'cid' => '0',
'last_comment_timestamp' => '1519378682',
'last_comment_name' => NULL,
'last_comment_uid' => '1',
'comment_count' => '0',
'name' => 'admin',
'picture' => '0',
'data' => 'b:0;',
'path' => FALSE,
'menu' => NULL,
'node_export_drupal_version' => '7',
),
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment