Check the ckeckbox

How to check the checkbox?

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


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


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


Keep up to date on this post and subscribe to comments

October 10, 2019 - 3:46am


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.

October 14, 2019 - 12:44am


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.


October 16, 2019 - 6:45am


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.