Hello,

I thinks this module is a great idea ! But I can't figure for the love of god how it works.

I want to add to my webform a table that has 2 columns, one for memberships and one prices
and each row has a radio button and a price.
it will look something like this
|--Memberships ---- Prices--|
|--Radio button+text ----- 300$---|
|--Radio button+text ----- 200$ ---|
and the person can choose an option then submit.
is this doable with this module?
an example of this table is attached.
i want an output similar to the one in the attachment
Thank you in advance

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alouch’s picture

Anyone?
I need this urgently...

Jelle_S’s picture

Closest I got to that setup:
Screen shot 2012-09-01 at 18.14.12.png

Install webform_share and import this code to replicate:

$webform = array (
  'nid' => '3',
  'confirmation' => '',
  'confirmation_format' => NULL,
  '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',
  'total_submit_limit' => '-1',
  'total_submit_interval' => '-1',
  'record_exists' => true,
  'roles' => 
  array (
    0 => '1',
    1 => '2',
  ),
  'emails' => 
  array (
  ),
  'components' => 
  array (
    1 => 
    array (
      'nid' => 3,
      'cid' => '1',
      'pid' => '0',
      'form_key' => 'table',
      'name' => 'Table',
      'type' => 'table_element',
      'value' => '',
      'extra' => 
      array (
        'rows' => '1|Formula\'s',
        'switch_layout' => 0,
        'title_display' => 'before',
        'private' => 0,
        'conditional_operator' => '=',
        'description' => '',
        'custom_row_keys' => 0,
        'conditional_component' => '',
        'conditional_values' => '',
      ),
      'mandatory' => '0',
      'weight' => '0',
      'page_num' => 1,
    ),
    2 => 
    array (
      'nid' => 3,
      'cid' => '2',
      'pid' => '1',
      'form_key' => 'options',
      'name' => 'Options',
      'type' => 'select',
      'value' => '',
      'extra' => 
      array (
        'items' => '12|12 months
6|6 months
3|3 months',
        'multiple' => 0,
        'title_display' => 'before',
        'private' => 0,
        'aslist' => 0,
        'optrand' => 0,
        'conditional_operator' => '=',
        'other_option' => NULL,
        'other_text' => 'Other...',
        'description' => '',
        'custom_keys' => false,
        'options_source' => '',
        'conditional_component' => '',
        'conditional_values' => '',
      ),
      'mandatory' => '0',
      'weight' => '1',
      'page_num' => 1,
    ),
    3 => 
    array (
      'nid' => 3,
      'cid' => '3',
      'pid' => '1',
      'form_key' => 'price',
      'name' => 'Price',
      'type' => 'markup',
      'value' => '499$
329$
200$',
      'extra' => 
      array (
        'conditional_operator' => '=',
        'format' => 'filtered_html',
        'private' => 0,
        'conditional_component' => '',
        'conditional_values' => '',
      ),
      'mandatory' => '0',
      'weight' => '2',
      'page_num' => 1,
    ),
  ),
);

A table as advanced as yours is not possible I'm afraid.

alouch’s picture

Hello,
thank you so much for your reply,
is every radio button and price in a seperate tr?
or all of them are in the same one?
cz i managed to do this aswell but with everything being in the same tr.

Thanks

alouch’s picture

I ran it, and turns out this is the solution i had found last night.
Thank you for your help,
and Keep up the good work.

Jelle_S’s picture

Status: Active » Fixed

No problem, and we'll try ;-)

Status: Fixed » Closed (fixed)

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