Make changes to main form with ahah callback in Drupal? -
i have form poll form.when there no data in db want show add button , when user clicks "more" want show him/her submit button. used following code seems doesn't works.
if ($form['count']['#value'] > 0) { $form['submit'] = array( '#type' => 'submit', '#value' => t('submit') ); }
how can this?
the values in $form_state['values'] try:
if($form_state['values']['count'] > 0){....
i expect @ point $form['count']['#value'] not set.
Comments
Post a Comment