Skip to content

[BUG][FormTribe 🔥][100 Points] Question ID should be restricted #1375

@gupta-piyush19

Description

@gupta-piyush19

Issue Summary

While adding a new question, it is allowed to set a custom ID to a question that adds the corner case for reserved keywords. Currently, it just restricts keeping duplicate question IDs and any IDs from hidden fields.

Reserved keywords: source, suID, userId

(please check the exact casing and find any more keywords.)

Steps to Reproduce

  1. Create a survey, add a new question to it, and edit the id for it
  2. add any reserved query param keyword.

Expected behavior

It should not allow the use of reserved keywords in question ID.

Other information

No response

Screenshots

No response

Environment

  • Formbricks Cloud (app.formbricks.com)
  • Self-hosted Formbricks

Desktop (please complete the following information)

- OS:
- Node:
- npm:

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghacktoberfestcomplete these issues to gather points for Hacktoberfest

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions