Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there,
I'm experiencing a problem with conditional fields. In Firefox I'm getting the following error:
parentId has no properties
[Break on this error] if (parentTag == 'FIELDSET' && parentId.indexOf("group-") != 0) {
In all browsers my conditional fields are not hidden (all are displayed). It was working some time ago. I've updated to the recent version (June 28). Any ideas?
Comments
Comment #1
bjacob CreditAttribution: bjacob commentedAfter refreshing the page a million times the parentId problem is gone. But another string thing happend. Firefox had no idea how to handle hide(). Very strange. As an alternative I've changed toSwitch.hide() to toSwitch.css('display','none'). This is working very well.
Edit: now I've found another form on my site. There the parentId problem is taking place again. The conditional field is embedded within an fieldset but the fieldset has no class like "group-...". I think this is the problem.
Comment #2
peterpoe CreditAttribution: peterpoe commentedIs anyone experiencing this issue? I can't reproduce...
Comment #3
mitchell CreditAttribution: mitchell commentedClosing this old issue, but please reopen of the issue persists.