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

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -