- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 07:35 AM
Hello,
I have a checkbox type field on the catalog task table and I want to make that editable only when the variable request type value is xxx.
Any advice on how to do this?
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 08:21 AM
Hello,
Please write a onload client script and all the below in the client script:-
var value = g_form.getValue('varibalename')
if (value=='whatevervalueyouwanttomatch'){
g_form.setReadonly('fieldname',false);
}
Please mark my answer as correct based on Impact.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 08:16 AM
I have a field on catalog task table and I want to make it editable based on the variable value.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 08:30 AM
Hi @Saai1 write a On Change catalog client script as below
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var rtv = g_form.getValue('Request type');
if (rtv == 'xxxxx'){
g.form.setReadonly('fieldname',false);
}
}
Please mark answer as correct/like if it is in line with you expectation.
Regards,
Gagan k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-07-2022 08:21 AM
Hello,
Please write a onload client script and all the below in the client script:-
var value = g_form.getValue('varibalename')
if (value=='whatevervalueyouwanttomatch'){
g_form.setReadonly('fieldname',false);
}
Please mark my answer as correct based on Impact.