Set variable read only on order guide
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2022 09:36 PM
Hello all,
I want to implement set variable read only on order guide on the choose option page but not able to find any solution tried doing below catalog client script on order guide but it is not working any help????
function onLoad() {
setInterval(function(){
var url = this.location.href;
if(url.indexOf('sc_cat_item_guide')>-1){
g_form.setReadOnly('my_variable',true);
}
else{
g_form.setReadOnly('my_variable',false);
}
},2000);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2022 09:45 PM
Hi Martin,
This thread should help you to achieve your requirement:
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2022 11:55 PM
some other solution??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2022 11:58 PM
Check this
https://community.servicenow.com/community?id=community_question&sys_id=27a90882db9258d0fa192183ca961999
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2022 12:44 AM
Hii Thankyou it works!!!