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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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