Question

Check the ckeckbox

How to check the checkbox?

My checkbox <td> has the below html.so performclick is not performed while clicking on it.Is any other way to check the checkbox for below situation ?

<td>

<center><input name="OF" onclick="checkTotal(this)" type="checkbox" value="12648"></center>

</td>

***Edited by Moderator: Lochan to update platform capability tags***

Comments

Keep up to date on this post and subscribe to comments

October 10, 2019 - 3:46am

Hello, 

Is your "checkTotal" function on the same html? Do you really need to work with pure HTML and JavaScript like that instead of using auto generated elements?

October 10, 2019 - 5:48am
Response to MarcLasserre_GCS

checkTotal is onclick event that is used in same code.

Pega
October 14, 2019 - 12:44am

Hi,

You can add a click event for a checkbox control and use a Run Script event for this:

This script can be defined in the UserWorkForm under <script> tag.

Thanks

Pega
October 16, 2019 - 6:45am

Hi,

With the same code,I was able to perform the click operation .Could you please provide the complete html or have you checked for any console errors.