Can we change the particular variable in RITM when it is loaded
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 04:03 AM
I have a requirement for changing the user details feild in the RITM when we load the RITM. The current user details need to be updated in that variable. The variable type we are using is Multi line text.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2024 04:50 AM - edited 03-14-2024 04:50 AM
I am not sure what business value this will add, This is not a very strong logic tbh.
But if it is just for learning, of this is what you want then follow the below
You can make the field read only by a catalog ui policy that runs on RITM.
Onload Client script to populate the variable , something like
var newData = g_form.getValue('variables.<variable name>');
newData = newData + ' ; New User ' +g_user.userName;
g_form.setValue('variables.<variable name>', newData);