Iāve seen various posts on how to do various types of custom buttons (most of which apply to Sugar and are difficult to implement in Suite), but I havenāt yet found anything that will work for what Iām trying to do. I want to add a button to a custom moduleās detail view called āGet PDFā that simply returns the value in the recordās moduleTitle div ā i.e., it spits out the value at the top-left of the current page. For now, it can show up in a popup window or something, but returning the value is the important part.
(Ultimately, weāre hoping to use this value to run a script that will build a PDF from the related records. But baby steps.)
So far Iāve added this code to the detail viewās buttons array. The button appears, but nothing that Iāve put in the āonClickā part has produced a result.
'customCode' => '<input type="button" class="button" onClick="NEED SOMETHING HERE" value="Get PDF">',
Can anyone help? Thanks!