How to set HTML variable read only in a catalog item in Istanbul version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2017 11:47 PM
hello Team,
I have tried below steps to make the HTML variable read only in the catalog item but it doesn't work.
1) Create a catalog client script " On load" with below script:
function onLoad()
{
g_form.setReadOnly('variable_name',true);
}
2) Created a Catalog UI policy and made the variable read only.
3)Set "Create roles" and "Write roles" to "nobody" on the HTML variable.
None of these techniques work to make the HTML variable read only. Please let me know if there is any way out on this.
Thanks,
Sreejith
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2017 12:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2017 12:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2017 12:38 AM
Hi,
This script looks perfect !!
Can you recheck the variable value 'Preview' ? Check if you are using the Question(Display name) instead of Name(Value of the variable).
Thanks,
Santo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2017 12:50 AM
Yes, I am using the correct one Name and it doesn't matter as both the display name and value are the same.
Thanks ,
Sreejith
