I am creating a control for my Dynamics CRM forms. This control is basically a simple HTML web resource with some JS. In the JS code, I would like to do the following:
As the currentControlName is something that may change depending on who adds it the form, I do not want to hardcode in my resource:
var currentControlName = "WebResource_[a control name]";
Is there a way to automatically determine in which control my JS is running?