-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get success message #38
Comments
@fufu7755 Drupal 7 or 8? |
Thank you for your reply, I use drupal 7. Drupal 8 api seems to be small. |
@fufu7755 jDrupal doesn't actually display the form success and/or errors either. DrupalGap has a little code snippet that tries to extract the form errors from the responseText during user login and registration: https://github.com/signalpoint/DrupalGap/blob/7.x-1.x/src/modules/user/user.js#L219 You can use that snippet to extract form errors from most resources (I think). As for success messages, no. You'll want your own success handlers to display messages for your application, because AFAIK we can't retrieve the success messages from Drupal, only error messages since they are delivered in the result. |
Thank you very much! |
@fufu7755 I won't be building any success message into D7 or D8, as I personally feel it is up to the application to decide what success message is displayed. However, it is possible right now to do this in D7 (and probably D8). In D7, you could theoretically |
@signalpoint Thank you for your help, I hope you can drupal 8‘s angular-drupal better. |
Very good tools!
When I update user or node how to get success message and error message.I saw jDruapl api there are success message, but I could not read it. Please give me a help!
Thank you!
The text was updated successfully, but these errors were encountered: