Custom field Client Control JS file inclusion
I'm trying to develop a custom field using the steps outlined here: www.sitefinity.com/.../building-a-custom-field-control
Unfortunately, I don't know how/where to include the client control js file, and it doesn't seem to say in the documentation. Can anyone explain how I might do this?
I'm very new to Sitefinity dev (as in this is the first thing I've done) and web dev in general, so feel free to suggest things that "should be obvious"
Question is also on StackOverflow
Ok, got it.
First you need to set the processing options for the js file to Embedded Resource
Then add it to the AssemblyInfo.cs:
Then override the GetScriptReferences method in the class that inherits from FieldControl: