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

Linked spreadsheet: Write responses to the same worksheet every time #1971

Open
matthijskooijman opened this issue Feb 18, 2024 · 1 comment
Labels
0. Needs triage Pending approval or rejection. This issue is pending approval. enhancement New feature or request

Comments

@matthijskooijman
Copy link

I previously posted this as feedback on the PR before it was applied (#1758 (comment)), but since it was out of scope for the initial PR, I'm reposting this here.

Nextcloud:

Is your feature request related to a problem? Please describe.

I'm considering to use the forms plugin as an easy way for non-technical users to contribute to a "logbook" spreadsheet. To provide additional info to regular users of the spreadsheet, I would like to add extra worksheets to the spreadsheet, containing extra instructions, or maybe more detailed info.

However, when the spreadsheet has multiple worksheets, results are written to the active worksheet (i.e. the one that was selected when the spreadsheet was saved), even when it was previously saved to another worksheet.

This was slightly unexpected, and makes adding a worksheet with instructions infeasible (unless users always make sure to switch back to the logbook worksheet, but I'm pretty sure that won't happen every time).

Describe the solution you'd like

Save the response to the same worksheet as the first time.

Maybe some worksheet ID could be saved when creating the spreadsheet and then used to save to the same worksheet every time (the worksheet title would not work so well, since users can change that in the spreadsheet).

@matthijskooijman matthijskooijman added 0. Needs triage Pending approval or rejection. This issue is pending approval. enhancement New feature or request labels Feb 18, 2024
@susnux
Copy link
Collaborator

susnux commented Feb 19, 2024

Could you retry it with forms 4.1? Because for me it works as expected.
We always open the first sheet:

$activeWorksheet = $spreadsheet->getSheet(0);

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. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants