Hey Marcus, You can't access attachments from your validation function.
But what you could do is put it in the design doc and as an attachment (if you still need it as an attachment). Then you can use commonjs to access the js. http://wiki.apache.org/couchdb/CommonJS_Modules On Wed, Oct 3, 2012 at 2:39 PM, Wordit <[email protected]> wrote: > I need to access an external javascript function from the validation function. > The function lives as an attachment in a design_doc. How do I include > it so the validation function can access it? > > Many Thanks, > > Marcus
