2023-11-13, 12:43:43
Ozcan,
Thanks for the html.
For some reason the default requestSubmit function isn't working. Will try to figure out why that is.
The following however might be able to work around the issue.
Your button has a onclick event, so instead of triggering submit, we're triggering the onclick event by programmatically sending a click.
Hope this helps,
Wil
Thanks for the html.
For some reason the default requestSubmit function isn't working. Will try to figure out why that is.
The following however might be able to work around the issue.
Code:
LOCAL lcjScript
LOCAL lbIsSuccess
LOCAL leStatus As Long
LOCAL leError As Integer
lcjScript = ''
TEXT TO lcjScript NOSHOW PRETEXT 7
() => {
let listele
listele = document.getElementById('btnListele');
if (listele) {
listele.click();
}
}
ENDTEXT
thisform.oAntView.navigateSync("https://antwise.com/demo/20231113-formSubmitButton.html",lbIsSuccess,leStatus)
thisform.oAntViewDocument.RunAnonymousFunction( 1, "", lcjScript)
Your button has a onclick event, so instead of triggering submit, we're triggering the onclick event by programmatically sending a click.
Hope this helps,
Wil