Couple things you could do, either create a new snippet for each button, popupWindow2, popupWindow3, etc. Or depending on your use could pass different variables from each place you have the HTML onclick action to your page include, and have it the end result be different from each variable. Same as if you have a page include component added declaratively, you can pass page parameters to your page include in your xml string in your popupWindow snippet. I’ll post an example later today.
Note that you can use Skuid merge syntax to pass in fields from whatever context your html onclick is, or you could even reference any model’s field via {{{$Model.Widgets.data.0.Amount__c}}}
FWIW, another cool trick is moving the onclick code into a custom render snippet, so if you wanted it on several fields in a table, you could just maintain one custom render snippet with your onclick action.
Hope that helps. Let me know if you have any other questions.
Hi Jack, the last option here did not work. I have created 3 separate js in-line resources and it seems to always choose the last js in the javascript window. Any ideas?
Jack, The unique Id I referenced was from the old pop up button referencing the page includes. Since I am not using a pop up button, I’m using my custom html button, what other way can I locate the unique Id?