Active
Project:
AHAH helper
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2011 at 15:42 UTC
Updated:
25 Feb 2013 at 13:05 UTC
Jump to comment: Most recent file
It seems that with no javascript enabled the ahah_helper_generic_submit callback tries to validate fields prior to updating the ahah-wrapper. So an error message is being printed first and the ahah-form fields don't get updated at all.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | Clipboard01.jpg | 37.8 KB | drupov |
Comments
Comment #1
drupov commentedHere's a screenshot from the demo module... The "usage" select list is being set to "private" and the validation messages pop-up. "Company name:" and "VAT number" are not replaced by "First name", "Last name" etc.
Comment #2
a_c_m commented+1 on this, been looking at the other solutions / reports. So far none work.
Comment #3
a_c_m commentedSo the solution is basically to use the skip_validation module.
http://drupal.org/project/skip_validation
Which makes everything work as you would expect. Part of me would like to see ahah_helper make skip validate a dependancy.
e.g.
Comment #4
nunoveloso commentedHi,
I've followed the same appraoch as a_c_m in #3 but setting
might produce unexpected submission results, use it with care! Basically it's good to use on DELETE buttons (where you actually don't submit anything but just redirect the user to a confirmation page).
Instead, simply use:
(more info in this here: http://drupal.org/node/602914#comment-2143636)
Also, I am +1 for having skip_validation as a dependency of this module.
Nuno
Comment #5
peter.hellerhoff commentedskip_validation does not seem to work with CCK fields. I have tried both,
'#skip_required_validation' => TRUEand'#skip_validation' => TRUEwith no effect.Can anybody confirm this. Is there a solution for CCK fields?