Button to lock variables on RITM form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 03:49 AM
Hi All,
We have made all the variables of a specific catalog item editable on RITM form.
Is there a way to lock all the variables through a button or any link ?
Please assist.
Thanks & Regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 06:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 12:23 AM - edited 04-04-2024 12:26 AM
@Joshuu : I'm currently working on this to check for you, somehow g_form.setVariablesReadOnly(true) isn't post clicking on the button.
But as an alternative, I have achieved it as below,
Either using the UI action to set the "Lock Variables" checkbox to "True" or by disabling the UI action and having only the checkbox manually updated to "True" sets the variables to readonly using UI policy.
Note: UI action - Visibility of the button is set based on the catalog item on RITM form.
Result :
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Sujatha V.M.