I've got a form that has a label and field I've defined in Composer. It's not a SBM "field" in the usual sense, i.e. it's not a field in the DB. The field will be populated by JS. I would like the label and field to behave similar to a "normal" SBM field, with pop-up hover-help appearing when the user hovers the mouse over the label. Because the field is not in a field in the database, SBM doesn't provide the infrastructure to display the field's TS_DESCRIPTION as hover-help.
I'm trying to figure out how SBM does it so that I can just tap into the existing look-and-feel. As near as I can tell, this is the code that's being called when a user hover's over a label. It's in jquery-sbm.min.js
eventHandle = elemData.handle = function( e ) { // Hover-help?
// Discard the second event of a jQuery.event.trigger() and // Hover-help?
// when an event is called after a page has unloaded // Hover-help?
return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ? // Hover-help?
jQuery.event.dispatch.apply( elem, arguments ) : undefined; // Hover-help?
};
I haven't gotten any further at this point. Has anyone figured this out?
This is SBM 11.8. We're working on upgrading to 12.something.