Wiki's HTML plugin supports forms but not javascript. We do build-in an occasional handler and would consider adding a "save all fields as json" handler if we had an application. mastodon >> form example
See HTML Form Fields Script for the Frame alternative.
The handler would suggest a revised page with the encoded data embedded. The author could approve the suggestion by forking. This would be all client-side and subject to our client-side Site Survey aggregation methods.
Here is an example with validation. mdn
The submit should run a built-in action that adds a json version of the validated fields to the page as it currently exists. This would then be presented as a ghost page to be saved, with data, over the current form.
Without special handling this fails with a post to the wiki server. Oh? I didn't expect that. github
POST http://ward.dojo.fed.wiki/view/html-form-fields 404 (Not Found) send @ jquery-2.2.4.min.js:4 ajax @ jquery-2.2.4.min.js:4 eval @ VM1036:139 dispatch @ jquery-2.2.4.min.js:3 r.handle @ jquery-2.2.4.min.js:3