-
Notifications
You must be signed in to change notification settings - Fork 0
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
Cannot read property 'split' of undefined when adding conditions to radio buttons #1
Comments
Duplicate of #24 |
All tested & good :) |
What the hell! So we spent £180 on this and we have to fix the Javascript issues. I am using Umbraco version 7.10.4, |
Any idea when this will be released in Forms 7.0.5? The code above is not in the js on this version and Im not sure where it should go? |
So how's it going to be? Any ideas about the bugfix and when it will come? Right now manually fixing it and hoping next update doesn't overwrite it doesn't really seem to help... |
In the suggested fix for this, What does this code do? |
First logged as http://issues.umbraco.org/issue/CON-1463
Steps to reproduce
Using Umbraco 7.6.12 or 7.7.6, and Forms 6.0.5. Also reported in Forms 7.0.2 by Stefan van Leusden.
Create a form with a "Single choice" field with options of "Yes" and "No", followed by a "Short answer" field. Add a condition to the "Short answer" field so that it only shows when the "Single choice" field is set to "Yes".
Expected result
The short answer field is hidden until "Yes" is selected for the "Single choice" question.
Actual result
The rule is applied correctly, but there is an error in the Chrome console:
Comment by Patrick Monslaup:
The function that crashes checks if "value" is the same as "expected", and gets a nullpointer on line 64 if the value is null/undefined but expected is not.
At this point you know that the values can't be equal, so add an if sentence before to check if value is undefined but expected is not.
This makes the method into..
The text was updated successfully, but these errors were encountered: