Override variable set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 01:39 AM
Hi,
I need to create a new catalog items. One of the variables is a field 'Priority' but instead of creating him from scratch I decided to use variable set that already contains this field.
In the variable set the default value for this field is '3'. How can I override this and change it to '1' without affecting other catalog items that use the same variable set?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 01:57 AM
Hello,
Try writing on load client script on catalog item level and set the value on load. That should work
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2022 04:05 AM
You can simply use onLoad client script to override the default value, but also include a null check, it should only populate value if value is not changed explicitly, so it only runs in catalog item view and not in other RITM or Portal view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2022 02:03 PM
Is your issue resolved?
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2022 11:17 AM
Hello,
If you are fine with my response, Please hit like and mark my response as correct if that helps.
Regards