Application error message in ajaxified forms

Using
$app->enqueueMessage($message);
in php form plugins. In an ajax 'popup' modal forms not showing any message anywhere. I expected the message to show up somewhere in the form box.
Wrong method to call? ANy hint?
 
you would need to give a fuller description of your form plugin settings. Although at a guess I would say this isn't going to be possible as the system event messages are shown on the main page - where as when we load in a modal we are just rendering the component.
 
Thanks. I can't either see there are any means for this. Just a question. I think we have to rethink and find a custom solution.
 
His problem is that he is doing this from an AJAX call. The enqueueMessage() will only show the next time the main page is loaded, in J!'s main info area. To get a response to show from an AJAX call, you have to handle it yourself , returning something in the JSON response and dealing with it in the Javascript on the client side.

-- hugh
 
Back
Top