fapi

Fix for Fix for Fix for the multiple select #default_value

  1. $form['mylist']  = array(
  2.                 '#type' => 'select',
  3.                 '#title' => t('Select From List'),
  4.                 '#options' => array(
  5.                     0=>'A',
  6.                     1=>'B',
  7.                     2=>'C',

Fix for jQuery onChange not taking effect

  1. Here's the form:
  2.  
  3.  <div id="pager"><div class="pager-title">Test Feature Package 2</div>
  4. <form action="/node/19"  accept-charset="UTF-8" method="post" id="pager-navigate-form">
  5. <div>Go to: <div c

jQuery onChange not taking effect

  1. Here's the form:
  2.  
  3.  <div id="pager"><div class="pager-title">Test Feature Package 2</div>
  4. <form action="/node/19"  accept-charset="UTF-8" method="post" id="pager-navigate-form">
  5. <div>Go to: <div c

Fix for Fix for Example of displaying multiple checkboxes,alue selected with one v

  1. $form['option_occassions'] = array(
  2.    '#type' => 'checkboxes',
  3.   '#title' => t('Associated Occassions'),
  4.    '#options' => array(
  5.     1 => "Formal",
  6.     2 => "Social",
  7.     3 => "Xmas",
  8.     4 =>

Fix for Example of displaying multiple checkboxes,alue selected with one v

  1. $form['option_occassions'] = array(
  2.    '#type' => 'checkboxes',
  3.   '#title' => t('Associated Occassions'),
  4.    '#options' => array(
  5.     1 => "Formal",
  6.     2 => "Social",
  7.     3 => "Xmas",
  8.     4 =>

Fix for Imagefield widget includ error

  1. /**
  2.  * Form for creating initial nodequeue
  3.  */
  4. function create_feature_package_form() {
  5.   //dsm(module_invoke('imagefield', 'elements'));
  6.  
  7.   module_load_include('inc','imagefield','imagefield_

Imagefield widget includ error

  1. /**
  2.  * Form for creating initial nodequeue
  3.  */
  4. function create_feature_package_form() {
  5.   //dsm(module_invoke('imagefield', 'elements'));
  6.   include_once'../../contrib/filefield/filefield.module';

Fix for putting user values back into a form

  1. /* two page form.

Fix for Fix for the multiple select #default_value

  1. $form['mylist']  = array(
  2.                 '#type' => 'select',
  3.                 '#title' => t('Select From List'),
  4.                 '#options' => array(
  5.                     0=>'A',
  6.                     1=>'B',
  7.                     2=>'C',

Fix for FAPI problem

  1. <?php
  2. $form = array();
  3.  
  4. $form[1] = array(
  5.   '#type' => 'fieldset',
  6.   '#title' => 'Player data',
  7. );
  8. $form[1]['credits'] = array(
  9.   '#type' => 'textfield',
  10.   '#title' => 'Credits',
  11.   '#siz
Syndicate content