Active
Project:
Popups API (Ajax Dialogs) [D7]
Version:
6.x-2.0-alpha6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
17 Jan 2011 at 17:20 UTC
Updated:
2 Mar 2011 at 13:17 UTC
I have a form generated via the form api with a validate and submit function. On validation if fields fail validation then form_set_error is called.
This work fine when the form is not linked to popups, however when it is linked the error messages are no longer displayed.
How do I get these message to appear?
Comments
Comment #1
gony commentedNote: I have also tried adding the popup class to a link to /contact and I still get the same problem.
Comment #2
flahertypj commentedI'm wondering the same as gony.
Thanks
Patrick
Comment #3
operations commentedSame here !! I'm begining to hate this module ! why the form submission errors not appearing by default in the popups module?? Isn't this supposed to be a normal feature as this module is used widely for webforms.
Anyone has solved this issue ?
:(
Comment #4
wowik73 commentedi create node-webform.tpl.php and add text
if (isset($GLOBALS['_SESSION']['messages']['error'])) {
$messages = $GLOBALS['_SESSION']['messages']['error'];
echo '
';
}
if (isset($GLOBALS['_SESSION']['messages']['status'])) {
$messages = $GLOBALS['_SESSION']['messages']['status'];
echo '
';
}
Comment #5
operations commentedYa wowik73, this might work.
But I had to fix it in the popups module itself to work for me as below:
in popups.module line 128 popups_render_as_json function:
before
after