I wanted to put a button on the body of the edit form that would run a JavaScript function I had defined in the "Javascript" tab for that form.
The button object has a place to put a form to launch, a Record ID, etc. but does not have a place for a straight JavaScript function call.
I wonder if it would be useful to add the ability for a button object to call a JavaScript function?
My Solution:
For now I have got around this by using a HTML Object and placing button code in it (see below). This is working well on screen but has the side effect of creating a 'hidden' phantom object that may make future maintenance harder for someone else.
Code: Select all
<input type="button" value="My Stuff" style="width:64px;" name="buttonMyStuff" id="buttonMyStuff" onclick="doMyStuff()" class="button">
Is there a better way to solve this problem?