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

Unable to save form when replacing field with same handle #1854

Open
chrismlusk opened this issue Apr 26, 2024 · 1 comment
Open

Unable to save form when replacing field with same handle #1854

chrismlusk opened this issue Apr 26, 2024 · 1 comment

Comments

@chrismlusk
Copy link

chrismlusk commented Apr 26, 2024

Describe the bug

I have an existing form with a field that I need to change its field type (Number → Single-line Text). Since I can't change the type of the current instance, I delete it and add a new field to the layout and reconfigure the field settings; the handle does not change. When I try to save the form, I get an error because that handle has already been taken.

Steps to reproduce

  1. Edit an existing form
  2. Delete a field
  3. Add a new field to the field layout and give it the same handle
  4. Save

Craft CMS version

4.8.10

Plugin version

2.1.12

@engram-design
Copy link
Member

Yep, a bit of a trick to this one that it needs to be a two-step process - delete the field, save, then add the new field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants