Webform Unable to Submit
Hi,
Thank you for your time in helping to not only create this awesome ADK, but also supporting it! :)
I have installed the webform drupal module, uuid, webform_submission_uuid, the drupalgap webform support module, the webform_service module as per http://www.drupalgap.org/project/webform, and added the drupalgap webform module to my cordova project.
I am using Drupal 7.39 and I installed drupalgap just a few weeks ago.
Issues:
- When I click on the submit button, the loading overlay pops up, but never goes away and the form never submits.
- The Results tab is showing up on nodes that are not webforms.
- When I click on “Results”, it shows an error message “Webform_submission_index is deprecated! Use webform_submissions() instead”.
If you need any other information, I will be more than happy to provide it to you. I did notice that chethanap had this issue in February here --> https://github.com/signalpoint/DrupalGap/issues/34
@g33kyg1rl Thank you for the kind words. Please submit future contrib related issues to their corresponding issue queues, e.g.: https://github.com/signalpoint/webform/issues
As always, I'll recommend running the latest version of everything, including Drupal core. Aside from that...
1 What does the console log and network tab reveal here? We're interested in any warning/error messages, and what JSON data is being POSTed to the Drupal site. 2 This feature was never completed, and I'd recommend removing the "local tasks" block from your settings.js file and building your own interface to reach a node edit screen. 4 This feature also needs some improvements.
Apologies, I will do that in the future. :)
- How do I trigger the console log and network tab on the node edit page?
- Noted.
- Should I create a webform submissions view to replace this page?
- In web app mode, right click on the page, go to "inspect element", then you'll have a Console and Network tabs (amongst others) which let you inspect many important aspects of development.
- Sure, a DrupalGap Views Render array in conjunction with a custom page and page arguments would work well here.
Ok, in the console log I found these error messages
"GET: http://webapp.dev/?q=drupalgap/webform/undefined/submissions.json¶meters[uid]=1 - 404 - Not Found"
"POST (ERROR): http://webapp.dev/?q=drupalgap/submission.json - 404 - Not Found"
"Drupal.services.call - onload - SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 1 column 5 of the JSON data"
A bit late but you need to allow drupalgap permissions to submit webforms
Bit late to this but manxon how do I do that?
Scratch that just worked it out... for those watching from home
admin/config/services/drupalgap -> click on 'Edit DrupalGap Service Resources'
Then tick 'submission' half way down the page
S