How can we fetch task variable value in client script
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 12:51 AM
Hello All,
My requirement is like when the status is changes to Pending then sub status should changed to customer action .
I have write client script on sc_task table and use type is on Change and field is status.
Below is script
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue == '') {
return;
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 07:24 AM
Try something like this:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
if (newValue == "-5") {
g_form.setMandatory("u_substatus", true);
g_form.setValue("u_substatus", "cust_action");
}
}
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-18-2025 01:45 AM
Hello Craig,
Thank you for your reply. My requirement was about how to fetch variable values from a task. However, I have found a solution. Thank you for your time.