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

Setting "FormElementHtmlIdPrefix" breaks conditional logic between multiple pages #1138

Closed
karltynan opened this issue Dec 21, 2023 · 1 comment
Labels
release/10.5.3 release/12.2.2 release/13.0.1 state/sprint-candidate We're trying to get this in a sprint at HQ in the next few weeks type/bug

Comments

@karltynan
Copy link

karltynan commented Dec 21, 2023

If you set a FormElementHtmlIdPrefix value in appsettings ("FormElementHtmlIdPrefix": "field_", for example), conditional logic works as expected for fields on the same page, but breaks for fields between multiple pages.

Specifics

Version: Umbraco Forms 10.5.2

Steps to reproduce

  1. Add a value for FormElementHtmlIdPrefix in appsettings (e.g. "field_")
  2. Create a form with two pages that has conditional logic between multiple pages:
    a. Add a checkbox on page one
    b. Add a textbox on page two
    c. Set the textbox to show only if the checkbox is true
  3. Add the form to a page
  4. Try the form on the website

Expected result

Based on the example above, checking the checkbox on page 1 should show or hide the textbox on page 2 accordingly.

Actual result

The textbox on page 2 is always hidden.


This item has been added to our backlog AB#36202

@AndyButland AndyButland added type/bug state/sprint-candidate We're trying to get this in a sprint at HQ in the next few weeks labels Dec 21, 2023
@AndyButland
Copy link

Thanks for reporting this @karltynan. We have a fix, and will make available in the next round of patch releases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release/10.5.3 release/12.2.2 release/13.0.1 state/sprint-candidate We're trying to get this in a sprint at HQ in the next few weeks type/bug
Projects
None yet
Development

No branches or pull requests

2 participants