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.
This is reminiscent of 1434136, but is, I suspect a separate issue.
If I use node export to copy a webform with webform validation and clientside validation I get the following notice when viewing the copied webform: Notice: Undefined index: element_name in clientside_validation_webform_add_webform_validation() (line 192 of . . .
If I create an identical webform from scratch, the error does not occur.
I'm using:
- clientside validation 7.x-1.38
- webform validation 7.x-1.1 (I've tried 7.x-1.3 with the same result)
- webform 7.x-3.19
- node export 7.x-3.0
Any suggestions on what might be causing this would be appreciated. I'd be happy to attempt a patch.
Comments
Comment #1
Mirabuck CreditAttribution: Mirabuck commentedComment #2
Jelle_SCan you provide me with the exported webform code?
As far as I can tell, when I export a webform, the validation rules aren't exported with it.
I added the same validation rules to my exported (and re-imported) webform and everything worked as expected.
Comment #3
Mirabuck CreditAttribution: Mirabuck commentedJelle_S: thanks for looking into this.
I agree that validation rules aren't part of the export.
I can't think of anything beyond the node export that would be a contributing factor here. I'll do some more testing using a minimal install and just the 4 contrib modules mentioned above to ensure that something else in my setup isn't causing this.
Comment #4
Jelle_S@Mirabuck: Any news on this?
Comment #5
Mirabuck CreditAttribution: Mirabuck commentedJust tried on a new site from minimal install and can't reproduce the issue. It must be something else in the mix on my end, but I can't figure out what. Will close this as 'can't reproduce'.
If I manage to get a clearer picture of what's going on I'll come back with more info.
Thanks for your time on this. Sorry for the wild goose chase.
Comment #6
Mirabuck CreditAttribution: Mirabuck commented