
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2022 05:01 PM
Hello Experts,
I am trying to develop, when a user selects the checkbox on UI Page and then clicks on the save button, the SCTASK of the RITM has to close complete.
The following code is not working.
Defined 2 variables:
var ritm_available_checkbox = false;
var ritm_not_available_checkbox = false;
HTML tags
<td><input type="checkbox" id="accept" name="ritmAvailableCheckbox" value="yes"></input></td>
<td><input type="checkbox" name="ritm_not_available_checkbox"></input></td>
<button onclick="myFunction()">Save</button>
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2022 10:14 AM
Thank you,
I moved the function to the client script and called it in HTML code.
It worked.
Thanks,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2022 05:41 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2022 12:16 AM
Hi Logan,
Thank you for your response.
We have defined it to test, but I have changed the value and tested, but no luck.
Thanks,
Raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2022 05:43 PM
Hi Raj,
Written script is correct it will update task status. but your not mapping check box value to variable.
var check = ritmAvailableCheckbox;
use above code it will work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2022 12:18 AM
Hi Anjaneyulu,
Thank you for your response.
I was testing with multiple attempts and missed the paste proper variable. It did not work even if i declared as
var check = ritmAvailableCheckbox;
Thanks,
Raj