Christian Hartmann
80fa593094
chore: remove API v2
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-10-12 23:46:36 +02:00
Ferdinand Thiessen
7aba08d095
feat: Allow to reorder options for "multiple" question type
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-10-04 13:18:25 +02:00
Christian Hartmann
5eb799f19e
feat: add API v3
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-08-31 00:01:30 +02:00
Ferdinand Thiessen
f3bc09c8be
chore: Fix code style by running prettier
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-06-12 22:37:58 +02:00
Konstantin Myakshin
6720298f0d
Add support for file question
...
Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
2024-06-03 17:10:56 +03:00
Ferdinand Thiessen
b7404cc443
feat: Allow to limit number of selected options for "multiple" question type
...
This allows setting a minimum and maximum of options.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-24 18:09:22 +02:00
Chartman123
cf32f81d9c
enh: documentation for embedding a form
...
Signed-off-by: GitHub <noreply@github.com>
2024-04-23 12:10:31 +00:00
Ferdinand Thiessen
475025686e
feat(embedding): Added window message events
...
* Added message event to communicate size of embedded document
* Added event for when form is submitted
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 17:37:47 +01:00
Ferdinand Thiessen
1533d5253c
feat: Allow embedding forms within other websites
...
* Add embedded endpoint for page controller and allow
inserting submissions without CSFR as anonymous submissions
for public shares.
* Added submenu entry for copying the embedding code to the clipboard
and added documentation on how to use the embedded view.
* Switched to `vue-clipboard2` to allow copying to clipboard
from submenu entry (allows setting a container for the copy action).
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2024-03-22 17:37:47 +01:00
Ferdinand Thiessen
afbea98fd1
feat: Add `state` to forms to allow manually close or archive forms
...
Archived forms can not be changed (except from being un-archived).
Closed forms behave like expired forms and just do not allow new submissions.
By default forms are in state `active`.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-22 13:32:47 +01:00
Christian Hartmann
508a939a5a
Update API version to v2.4
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2024-02-01 18:49:49 +01:00
Konstantin Myakshin
8d2b52b4d6
enh: Added possibility to link spreadsheet for automatic submission export in multiple formats
...
Signed-off-by: Konstantin Myakshin <molodchick@gmail.com>
2024-01-23 23:45:23 +01:00
Ferdinand Thiessen
c026583a25
fix: Adjust API version, fix API test and make code naming consistent
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-21 14:48:42 +01:00
hamza221
817847bf46
transfer ownership of a form
...
Signed-off-by: hamza221 <hamzamahjoubi221@gmail.com>
2023-12-12 22:24:40 +01:00
Christian Hartmann
c84e09da27
enh: use PUT for updating and move to API v2.2
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2023-11-29 20:35:38 +01:00
Christian Hartmann
c970ca9c39
Fix missing column in DataStructure.md
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2023-11-27 20:58:25 +01:00
Ferdinand Thiessen
22bf12b721
feat: Validate custom input traits for short answers of new submissions
...
* Also validate `extraSettings` especially the regex for custom short input
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-27 14:48:22 +01:00
Ferdinand Thiessen
fed3d4c11e
feat: Implement custom submission message
...
This message is shown when a user submits the form and can be formatted using markdown.
Make the custom submission message hidden behind a checkbox
Null on submissionMessage means disabled
Co-authored-by: Chartman123 <chris-hartmann@gmx.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-16 22:03:27 +02:00
Ferdinand Thiessen
cb8cb911cb
fix(docs): Add changes of API 2.1 to the API docs
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-16 19:26:54 +02:00
Christian Hartmann
40b2bda342
Enhance handling of extraSettings, fix XML output
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2023-09-01 19:02:17 +02:00
Andrii Ilkiv
da261ff191
feat: Add 'Other' option for radio/checkbox questions.
...
Signed-off-by: Andrii Ilkiv <a.ilkiv.ye@gmail.com>
2023-08-29 08:51:22 +03:00
Ferdinand Thiessen
46dfde203c
feat: Add technical identifiers for questions
...
Technical identifiers allow to map form questions to custom data.
On the frontend those identifiers are implemented as `name` props on the form elements.
The name attribute for technical identifier should be mapped to all options
so a `fieldset` is introduced around radio / checkbox buttons.
Added required aria label for `fieldset` (labeled by the question title).
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-06-26 00:04:21 +02:00
Christian Hartmann
8cffecc2f4
Move API to v2.1
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2023-02-28 23:37:21 +01:00
Chartman123
1e4af6a35e
Add shareHash parameter
...
Add missing shareHash parameter to documentation of `/api/v2/submission/insert`
Signed-off-by: Chartman123 <chris-hartmann@gmx.de>
2023-02-01 18:21:24 +01:00
Ferdinand Thiessen
a032c3c7db
Add `results_delete` permission
...
Check permission on frontend to show delete buttons
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-01-31 13:32:45 +01:00
Ferdinand Thiessen
ae5e7bb756
Add unit and integration tests for results permission
...
* Add unit tests in `FormsService` and `ShareApiControllerTest`
* Add permissions to share API documentation
Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
2023-01-31 13:32:45 +01:00
Christian Hartmann
cf77d997d9
Add showExpiration to docs
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2023-01-10 18:24:26 +01:00
Jonas Rittershofer
81ef09b9a8
Invert submitOnce
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-07-10 21:59:11 +02:00
Jonas Rittershofer
f92c504292
Move API to v2
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2022-05-31 21:41:32 +02:00
Christian Hartmann
d26fa2d86e
Add answer type 'time'
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2022-04-08 17:28:01 +02:00
Jonas Rittershofer
4ade6de00f
Test FormsService
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-05-02 23:54:58 +02:00
Christian Hartmann
bb71390c33
Change documentation to isRequired
...
Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
2021-04-10 11:09:58 +02:00
John Molakvoæ
cbed484547
Merge pull request #780 from nextcloud/enh/export_to_cloud
2021-02-26 09:11:02 +01:00
Jonas Rittershofer
af0c72cd25
Clarify Access, redirect if necessary, show EmptyContents if wanted
...
Empty-Content if noForms
Empty-Content if unaccessable hash
Empty-Content if user can't submit anymore.
Reset Empty-Content and data, when switching form
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 15:54:44 +01:00
Jonas Rittershofer
1b26246149
API return shared forms
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 15:54:42 +01:00
Jonas Rittershofer
f22eab7b7a
Enclose all CSV fields
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 14:51:34 +01:00
Jonas Rittershofer
6da61afea9
Export to Cloud
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-25 14:51:33 +01:00
Jonas Rittershofer
3f5021c22d
Enable Form Cloning
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-21 22:40:17 +01:00
Jonas Rittershofer
13ff0ad361
Include DataStructure Doc
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-11 12:18:12 +01:00
Jonas Rittershofer
0a23ed0b3b
Include API Docs
...
Signed-off-by: Jonas Rittershofer <jotoeri@users.noreply.github.com>
2021-02-11 12:18:11 +01:00