cancel
Showing results for 
Search instead for 
Did you mean: 

How to emulate button click

Former Member
0 Kudos

Hi,

I have an iView with the HtmlB button on the jsp page.

What I need is to activate the button onClick from within the program (as if the button was invisible to the user).

How can I do it?

Thanks

Aviad

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

you can use an ExternalSubmitter (HTMLB control) which you can put to the form. You can define an external submitter event id (which can be the same event id as the button onClick event id). On client side you can then submit the form with the js method: htmlbexternal_submit_();

Former Member
0 Kudos

When should the invisible button be clicked? Is it a particular event? Maybe you can use another control to trigger the intended behavior.

darrell_merryweather
Active Contributor
0 Kudos

The buttons are translated to HTML <a> (anchor) tags. Therefore, you should get the Id of the <a> and activate this by calling the click event on the anchor.