All variables except one read only on catalog items
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 11:30 AM
We've used the script below to set all fields read only for Catalog Task and Requested Items. However, we need one variable to be editable and all others read only.
the variable is "customer_phone" that we need to NOT be read only. Normally how I've done catalog items in the past is to put on UI Policies for them and not through a client script. However, here it was done with a client script.
function onLoad() {
g_form.setVariablesReadOnly(true);
}
any idea on something simple that I could add to this script to set all of them read only except for the customer_phone field?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 01:09 PM
That or maybe do some ACL maneuvering.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 01:12 PM
As you know from my other post about my ACL not working... ACLs are not my friends right now. lol

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 01:15 PM
Ah, yea, just clicked that that was you, lol.
Dude I know we can get that to work. I did it on mine, but yea, I hear ya!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 01:23 PM
It makes ZERO sense that it's not working. I've done exactly what you suggested in the past and it worked no problem. Something screwy going on with this. I'm going to revisit that one tomorrow. Thanks again!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 01:28 PM
Sounds good. Take a look again at it all and reply to the post and let me know if it does or doesn't. It could have gotten all confusing with all the posts we had. I can summarize again just to double-check if it still doesn't work.
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!