Obviously doing something wrong with Ctools (latest version enabled in D6)


Here is the form field that should disappear when the option selected in the edit-cc-type field is Other. The Ctools parameters are the last two.


   $form['cc_cvv'] = array(
     '#type' => 'textfield',
     '#title' => t('CVV'),
     '#default_value' => $_SESSION['clear_cc'] ? '' : $default_cvv,
     '#attributes' => array('autocomplete' => 'off'),
     '#size' => variable_get('uc_credit_amex', TRUE) ? 4 : 3,
     '#maxlength' => variable_get('uc_credit_amex', TRUE) ? 4 : 3,
     '#process' => array('CTools_process_dependency'),
'#dependency' => array('edit-cc-type'=> array('Visa','Mastercard','Discover','American Express')),
     );


Changing the selected option has no affect on this field.


Jeff


Reply via email to