The information in this article applies to:
Product: Metastorm BPM (e-Work)
Version: 6.x 7.x
Issue
- How can one click a button on a form from a client-side script?
Resolution
Here are two sample scripts that do that. For example, they can be called from the client extensions of a form using OnLoad=ButtonClickTest()&Language=JScript \[VBScript\].
VBScript:
Sub ButtonClickTest()
eworkData.FieldByName("ButtonName").HTMLfield.onfocus()
eworkData.FieldByName("ButtonName").HTMLfield.onclick()
End Sub
JScript:
Function ButtonClickTest()
\{
eworkData.FieldByName("ButtonName").HTMLfield.onfocus();
eworkData.FieldByName("ButtonName").HTMLfield.onclick();
\}