test hiding elements
This commit is contained in:
@@ -61,7 +61,8 @@ function booking_variety_regn_form($node, &$form_state)
|
|||||||
|
|
||||||
$form['variety-sessions'] = array(
|
$form['variety-sessions'] = array(
|
||||||
'#type' => 'fieldset',
|
'#type' => 'fieldset',
|
||||||
'#title' => 'Select Variety Sessions',
|
'#title' => 'Select Variety Sessions',b
|
||||||
|
'#attributes' => array('class' => 'element-hidden'),
|
||||||
//'#prefix' => '<div id="booking_variety_session_fieldset_wrapper">',
|
//'#prefix' => '<div id="booking_variety_session_fieldset_wrapper">',
|
||||||
//'#suffix' => '</div>'
|
//'#suffix' => '</div>'
|
||||||
);
|
);
|
||||||
@@ -151,10 +152,11 @@ function booking_variety_session_form_callback($form, &$form_state) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$form['form']['identity']['booking_feedback_wrapper']['#markup'] = '<div id="booking_feedback_wrapper">Identity matched.</div>';
|
$form['form']['identity']['booking_feedback_wrapper']['#markup'] = '<div id="booking_feedback_wrapper">Identity matched.</div>';
|
||||||
|
$form['form']['variety-sessions']['#attributes']['class'][] = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Rebuild the form
|
||||||
$form_state['rebuild'] = TRUE;
|
$form_state['rebuild'] = TRUE;
|
||||||
return $form['form'];
|
return $form['form'];
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user