This topic is locked
[SOLVED]

click custom button programmatically

12/26/2022 12:50:17 PM
PHPRunner General questions
I
I author

From an field I created an event to activate an "add button". In this forum I found this code:

$("a[id^=initButton]").click();

welke JaVa code moet ik gebruiken om de button add_save te activeren ? Zie screenshots

img alt

img alt

What do I need to change in the code to make the button work? Thanks in advance

fhumanes 12/26/2022

Hello,
This code works in an event JavaScript Onload.

function addValue(){
$("#saveButton1").trigger('click');
}
setTimeout(addValue,2000);

Regards,
fernando

I
I author 12/26/2022

Works great! Thank you