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

Conditions removed when form is copied #624

Closed
develoNiklas opened this issue Aug 17, 2021 · 1 comment
Closed

Conditions removed when form is copied #624

develoNiklas opened this issue Aug 17, 2021 · 1 comment

Comments

@develoNiklas
Copy link

When copying a form with a conditional field the condition only partially copies over. This breaks the condition.

image

Reproduction

  • Create a form with a single choice question
  • Create a short answer with a condition that only will show the field if one of the single choice answers are selected
  • Save form and make a copy
  • The in the copy of the form the condition will be broken.

Specifics

  • umbraco version: 8.12.2
  • umbraco forms version: 8.7.1

Expected result

All fields in the condition should be copied

Actual result

the question alias is missing

@AndyButland
Copy link

I found this was happening as in a recent release we made an update to ensure field Ids are regenerated when copying forms, so they are unique across all form instances, in case two forms are presented on the same page.

What we hadn't done though was ensure that the conditions that are based on fields had their Ids updated to the newly generated ones. I've done that now, so will be available as a fix in the next release.

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

No branches or pull requests

2 participants