Problem/Motivation

I would like to submit a request to enable PWA mode for the webForms. So that the users can utilize the phine and tablet devices in offline mode.

Steps to reproduce

1. Enable PWA on Drupal site using PWA modeule
2. Create a sample webForm
3. Deploy it on Pantheone or other hosting service
4. Use your phone to the download and add the app to your device.
5. Go to offline mode on your device.
6. You will be able to see and fill the webform offline
7. click on on submit
8. The submission will will due to network / offline

Proposed resolution

Enable submsission in the background mode so that webform can be used (PWA mode)

Remaining tasks

User interface changes

API changes

Data model changes

Comments

rsdeosi created an issue. See original summary.

jrockowitz’s picture

Version: 8.x-5.4 » 8.x-5.x-dev

This will be a lot of work and maybe impossible because Form API depends on unique secure tokens for authenticated submission. The webform module requires a form state for Ajax and multistep forms, which could be lost via the offline mode.

jrockowitz’s picture

Status: Active » Closed (won't fix)

I do not think this is feasible with Drupal's current implementation of Form API. The first step would be making a simple Form API form work offline in Drupal and see if the solution could work for the webform module