DrupalGap icon indicating copy to clipboard operation
DrupalGap copied to clipboard

Webform Unable to Submit

Open g33kyg1rl opened this issue 9 years ago • 7 comments

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:

  1. When I click on the submit button, the loading overlay pops up, but never goes away and the form never submits.
  2. The Results tab is showing up on nodes that are not webforms.
  3. 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 avatar Apr 21 '16 13:04 g33kyg1rl

@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.

signalpoint avatar Apr 22 '16 01:04 signalpoint

Apologies, I will do that in the future. :)

  1. How do I trigger the console log and network tab on the node edit page?
  2. Noted.
  3. Should I create a webform submissions view to replace this page?

g33kyg1rl avatar Apr 22 '16 18:04 g33kyg1rl

  1. 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.
  2. Sure, a DrupalGap Views Render array in conjunction with a custom page and page arguments would work well here.

signalpoint avatar Apr 22 '16 19:04 signalpoint

Ok, in the console log I found these error messages

"GET: http://webapp.dev/?q=drupalgap/webform/undefined/submissions.json&parameters[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"

g33kyg1rl avatar Apr 22 '16 23:04 g33kyg1rl

A bit late but you need to allow drupalgap permissions to submit webforms

manxon avatar Feb 26 '17 00:02 manxon

Bit late to this but manxon how do I do that?

sim3083 avatar Feb 27 '17 21:02 sim3083

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

sim3083 avatar Feb 27 '17 21:02 sim3083