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

Textarea value not submitted/emtpy when the field has conditions #881

Closed
mcl-sz opened this issue Sep 21, 2022 · 1 comment
Closed

Textarea value not submitted/emtpy when the field has conditions #881

mcl-sz opened this issue Sep 21, 2022 · 1 comment

Comments

@mcl-sz
Copy link

mcl-sz commented Sep 21, 2022

When a form has a textarea (Long answer) and a condition is added, the value is not saved when submitting the form.

Reproduction

  • Install Umbraco Forms 8.13.2 or earlier.
  • Create a form with an checkbox (name "Test") and a textarea/long answer (name "Message").
  • Add an condition to the textarea: "Show this question if all of the following match: Test is True"
  • Add the form to a page
  • Goto to the page, check the checkbox, enter a text in the "Message" field and submit the form.
  • Check the form entry in the backoffice: the "Message" field is empty.

Expected result

I would expect that the "Message" field is saved.

Actual result

The "Message" field value is not saved.

@AndyButland
Copy link

Thanks for reporting... I'll close this though as it's already on the radar in this issue, though admittedly it's not super-clear as there's been a bit of discussion in there.

To summarise, this should work as expected if the value you are testing against is "true" rather than "True". We're working on a fix for the next patch update to make this case insensitive, so it aligns with the conditional logic used client-side.

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