While adding conditionals, it can be quite annoying to get the validation message, "The subject of the conditional cannot be the same as the component that is shown or hidden.", while trying to add or remove conditionals. We should only validate this condition when saving the form, not when adding/remove conditionals. This also prevents our validation message from getting added in odd places, like the middle of the table.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Status: Active » Fixed

Committed this patch.

  • Commit 92369bb on 7.x-4.x by quicksketch:
    Issue #2245807: Skip validation on conditionals when adding/removing...
fenstrat’s picture

Version: 7.x-4.x-dev » 8.x-4.x-dev
Assigned: Unassigned » fenstrat
Status: Fixed » Patch (to be ported)

Needs porting to 8.x-4.x.

fenstrat’s picture

Version: 8.x-4.x-dev » 7.x-4.x-dev
Assigned: fenstrat » Unassigned
Status: Patch (to be ported) » Fixed

Committed and pushed 92369bb to 8.x-4.x. Thanks!

  • Commit 0a9c708 on 8.x-4.x authored by quicksketch, committed by fenstrat:
    Issue #2245807 by quicksketch: Skip validation on conditionals when...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.