AnsweredAssumed Answered

Form node reference

Question asked by guiguik on Mar 18, 2014
Latest reply on May 10, 2018 by brahmaiah926
Hi guy's,
I'm trying to do a validation handler on a form (associated with an aspect). Evrything work fine with my validator in normal edit mode but I have an error when I try to use my validator from simple edit form (doclib-simple-metadata) because I don't know where I can find reference for the edited node.
In normal edit I get noderef from url:
    
var str = field.ownerDocument.location.search;


but in simple edit mode I don't know where to find it. I already try to browse variable with chrome developper tools but I don't find any reference to the updated node.
Is there a variable I can use, or I have to pass argument to my validation function?

Outcomes