A
class is used on the button to make it simple to define the click handler when the field is used in a
report and there are multiple buttons.
[iol] & "module.js" & [/iol]
&
"<a class='QBU_Button Vibrant Success' " &
" data-rid='" & [Record ID#] & "'" &
">Button</a>"
Within the click handler you can refer to the
specific button that was clicked on by referencing
this either as a
variable or as the
argument of $(this):
$("a.QBU_Button").on("click", function(event) {
var rid = this.dataset.rid;
$(this).parent().html("done");
});