Exports forms and the submissions of form into an json file and allows to import it into another nextcloud server
A single-page browser tool to export Nextcloud Forms (with all questions and options) from one server and import them into another.
- Open
index.htmlin your browser - Export: Enter the source server URL, credentials, and form ID, then click "Export Form as JSON"
- Import: Enter the target server URL, credentials, select the exported JSON file, then click "Import Form from JSON"
You can use either the numeric Form ID or the hash from the form URL.
The hash is the string visible in your Nextcloud URL, e.g.:
https://cloud.example.com/apps/forms/rPXD5oJeNjJozgn6 — here rPXD5oJeNjJozgn6 is the hash.
Simply paste the hash into the "Form ID or Hash" field. The tool will automatically resolve it to the correct form.
Since this tool runs in the browser, requests to a different domain may be blocked by CORS policy. Four solutions:
Install a CORS-unblocking extension:
- Chrome / Edge / Brave: CORS Unblock
- Firefox: CORS Unblock
Enable it, reload the page, and requests should go through.
Launch Chrome with --disable-web-security and a separate user-data directory:
macOS:
open -n "/Applications/Google Chrome.app" --args --user-data-dir="$HOME/chrome-cors-dev" --disable-web-securityWindows (PowerShell):
& "${env:PROGRAMFILES}\Google\Chrome\Application\chrome.exe" --user-data-dir="$env:USERPROFILE\chrome-cors-dev" --disable-web-securityWindows (Command Prompt):
"%PROGRAMFILES%\Google\Chrome\Application\chrome.exe" --user-data-dir="%USERPROFILE%\chrome-cors-dev" --disable-web-securityLinux:
google-chrome --user-data-dir="$HOME/chrome-cors-dev" --disable-web-securitySame flags, different executable:
macOS:
open -n "/Applications/Brave Browser.app" --args --user-data-dir="$HOME/brave-cors-dev" --disable-web-securityWindows (PowerShell):
& "${env:LOCALAPPDATA}\BraveSoftware\Brave-Browser\Application\brave.exe" --user-data-dir="$env:USERPROFILE\brave-cors-dev" --disable-web-securityWindows (Command Prompt):
"%LOCALAPPDATA%\BraveSoftware\Brave-Browser\Application\brave.exe" --user-data-dir="%USERPROFILE%\brave-cors-dev" --disable-web-securityLinux:
brave-browser --user-data-dir="$HOME/brave-cors-dev" --disable-web-securityWarning:
--disable-web-securitydisables browser security entirely. Only use this dedicated instance for this tool, not for general browsing. Close it when done.
Place the index.html file on your Nextcloud server's web directory so it is served from the same domain. No extension or flags needed.
- A modern browser (Chrome, Firefox, Edge, Safari)
- Nextcloud server with the Forms app installed (API v3)
- Valid credentials with permission to read/create forms