I have used the following code to insert a "Create Report" button which merges fields to webmerge. My problem is that whenever a subtable in my scene gets added to, another button appears in the scene. This happens each time and therefore the user ends up with lots of "Create Report" buttons. How do I stop this please?
$(document).on('knack-scene-render.scene_52', function(event, scene) {
$('#view_155').after('<div style="padding:0px"><a href="#" id="webmerge" class="kn-button">Create Report</a></div>');
// link hander: Print Report
$('#webmerge').click(function(event) {
event.preventDefault();
Thanks in advance
Kim