I've installed the Ajax module, enabled the relevant sub-modules (including the webform, and redirect ones). Set permissions. Ticked enabled and disable redirect next to the two webforms I wanted it to apply to.

Nothing has changed.

If I enable the entire content type webform then when I go to node/add I can see that its working. But not working on my existing webforms.

The actual webforms that I'm using are coupled with the webformblock module but I have tested even on a standard webform and both are giving the same problem.

Any suggestions?

Comments

tko’s picture

Digging further...

Seems that only forms that I have themed are exhibiting this behaviour.

i.e. - if I have a webform-form-72.tpl.php it stops ajax from latching on.

tko’s picture

if anyone cares in the slightest I solved my problem by forcing the submit button to have the 'ajax-trigger' class by adding:

'#attributes' => array('class' => 'ajax-trigger'),

dmatamales’s picture

Thanks so much kostodo. I was having the same issue with Webform 3 and this totally solved it.

Specifically, I did this:

	$form['actions']['draft']['#attributes'] = array('class' => 'ajax-trigger');
	$form['actions']['submit']['#attributes'] = array('class' => 'ajax-trigger');
sivaji_ganesh_jojodae’s picture

Everything works good for me only thing that is missing is an option to clear form on submit. Did anyone get this working ?

ishener zaph’s picture

I have the same problem exactly, but the submit button has the 'ajax-trigger' class.
anybody have any idea why?

brendoncrawford’s picture

Status: Active » Postponed (maintainer needs more info)

Can somebody supply this code as a patch?