tford
Build 1161 now has the a very useful improvement which allows you to:
1) incorporate a custom button info a form in an HTML cell
2) turn off other buttons
The image below shows a custom button beside a dropdown attribute:
Below are the notes that Support provided to me for this new feature:
In this build #1161, you can hide standard buttons and provide your own HTML buttons that not only start a process with the current object as a parameter but optionally save the form. This is not documented yet, but will be in the upcoming release. The syntax is:
AwareApp.startProcessFromForm (processName, renderOption, htmlElem, saveFlag)
processName - name of the process to start
renderOption - where to redirect the result of the process. Either 'main' or 'new_tab' or panel id. Panel id can be obtained with the following method: AwareApp.getPanelId (frameType, tabName, panelName)
htmlElem - the HTML element that was clicked on the form. This is usually "this"
saveFlag - if true will save the form
Example:
<button type="button" onclick="AwareApp.startProcessFromForm('MyProcess', 'main', this, true)" >Start</button>
Enjoy!
Tom