⚡️ Describe the Bug
When creating a template, template creation fails if two or more fields have the exact same name (e.g., two fields both named "email"). The UI shows an error and the template cannot be created. This should not be a hard failure — field display names can legitimately be identical, and uniqueness should be enforced on internal IDs rather than on human-friendly names.
👣 Steps to Reproduce
- Go to Templates → Create Template.
- Add a field with the name
email.
- Add another field with the name
email (exact same name).
- Save / Create the template.
- Observe an error preventing the template from being created.
📉 Expected Behavior
The template should be created successfully. Display names (field names shown to users) may be identical; system should ensure unique internal identifiers for fields. If identical display names are not allowed, the app should present a clear validation message and offer a way to resolve (auto-suffix, require unique ID, etc.).
🖥️ Environment Information
- OS: Web / cross-platform
- Browser: (e.g. Chrome, Firefox)
- FireForm branch/version: development
📸 Screenshots/Logs
If available, attach the UI error message shown when saving the template — e.g. "Cannot create the template".
🕵️ Possible Fix
- Allow duplicate display names and rely on unique internal field IDs (generated keys) to differentiate fields.
- Update validation to check uniqueness on the internal identifier rather than the display name.
- Improve the error message and provide options (auto-rename or require an ID) if uniqueness is needed.
⚡️ Describe the Bug
When creating a template, template creation fails if two or more fields have the exact same name (e.g., two fields both named "email"). The UI shows an error and the template cannot be created. This should not be a hard failure — field display names can legitimately be identical, and uniqueness should be enforced on internal IDs rather than on human-friendly names.
👣 Steps to Reproduce
email.email(exact same name).📉 Expected Behavior
The template should be created successfully. Display names (field names shown to users) may be identical; system should ensure unique internal identifiers for fields. If identical display names are not allowed, the app should present a clear validation message and offer a way to resolve (auto-suffix, require unique ID, etc.).
🖥️ Environment Information
📸 Screenshots/Logs
If available, attach the UI error message shown when saving the template — e.g. "Cannot create the template".
🕵️ Possible Fix