Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sub-form response that allows multiple responses #1728

Open
zzmgck opened this issue Sep 28, 2023 · 4 comments
Open

Sub-form response that allows multiple responses #1728

zzmgck opened this issue Sep 28, 2023 · 4 comments
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. discussion Being discussed enhancement New feature or request feature: ❓ question types low Low priority
Milestone

Comments

@zzmgck
Copy link

zzmgck commented Sep 28, 2023

Nextcloud (please complete the following information):

  • Nextcloud-Version: 26.0.x
  • Forms-Version: 3.3.x

Is your feature request related to a problem? Please describe.
I need the ability to construct a response that I would describe as a sub-form that allows the user to add an arbitrary number of responses to a list. For example, a travel form that allows the user to make an itinerary of stops

Describe the solution you'd like
The feature would allow the user to design a form and then use that form as sub-form. In the travel example, I would make a travel stop form that has an arrival date, departure date, city, country.

The main form would have a list element that would allow the user to add an arbitrary number of stops to the itinerary element of the travel form.

Ideally, the form designer could designate an element in the sub-form as the sort element that would sort the responses within the list.

Describe alternatives you've considered
A large text block; however, there is no way to enforce formatting and field validation (e.g. valid dates).

@zzmgck zzmgck added 0. Needs triage Pending approval or rejection. This issue is pending approval. enhancement New feature or request labels Sep 28, 2023
@Chartman123
Copy link
Collaborator

I think this is rather an edge use case, so we'll probably not be implementing this any time soon.

@Chartman123 Chartman123 added this to the Maybe someday milestone Sep 28, 2023
@Chartman123
Copy link
Collaborator

@jotoeri @susnux What do you think about a question type "sub-form"?? The more I think about it, the more I come to the conclusion that this would kind of abuse the original form for a use case that probably isn't needed very often and could be better suited by some other application...

@susnux
Copy link
Collaborator

susnux commented Sep 28, 2023

I agree with @Chartman123 currently we follow the KIS principle, so keeping it simple but that seems to be a corner case that would introduce much overhead and complexity.

@zzmgck
Copy link
Author

zzmgck commented Sep 28, 2023

As the submitter, I do think keeping the present Forms simple is a good decision. The idea of a new application that has the additional complexity is a good one. I have not looked at the source, but my initial thought would be to base a new application that attempts to use the Forms application as a component. Does the current architecture lend itself to reuse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. discussion Being discussed enhancement New feature or request feature: ❓ question types low Low priority
Projects
None yet
Development

No branches or pull requests

3 participants