Skip to content

Display question ID in the Forms UI for easier Windmill automation #2700

@ericfischereu

Description

@ericfischereu

Nextcloud (please complete the following information):

  • Nextcloud-Version: 31
  • Forms-Version:

Is your feature request related to a problem? Please describe.
When using Windmill, getting answers from a from submission is only working by querying the question ID. The ID however is not visible in the form.

Describe the solution you'd like
Similar to tables: When editing a column, there's an info icon displaying table and column id. The same should be implemented in Forms: Through the "three dot menu" of a question the question ID should be visible.

Describe alternatives you've considered
It's possible to set a technical name for each question. This however is not returned by the API. If the technical name would be available in the API response, the ID would be obsolete.

Additional context
Example output of /ocs/v2.php/apps/forms/api/v3/forms/{formId}/submissions

{
    "submission": {
        "id": 27,
        "formId": 3,
        "userId": "admin",
        "answers": [
            {
                "id": 105,
                "text": "Laptop",
                "fileId": null,
                "questionId": 7,
                "submissionId": 27
            },
            {
                "id": 106,
                "text": "Super Laptop 5",
                "fileId": null,
                "questionId": 8,
                "submissionId": 27
            }
        ],
        "timestamp": 1744785175,
        "userDisplayName": "admin"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejection. This issue is pending approval.enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions