- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 06:44 AM
Hi,
I have a variable inside a multirow variable set named 'user type' i have a similar variable in the form outside of the multirow. I want to make it so, once i select the user_type outside of the multirow, and once i open the mrv this variable is auto-populated with the previous response. Any idea how i can do this?
Thanks,
Miguel Santos Palmeira
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 08:11 AM - edited 02-09-2024 08:23 AM
Hi @mipalm ,
You can add a onLoad client script in the mvrs as
function onLoad() {
//Type appropriate comment here, and begin script below
var option = g_service_catalog.parent.getValue("user_type") // user_type is the variable name from the catalog item
g_form.setValue('user_type1', option); // user_type1 is the variable on the mvrs.
}
Not clear with the variable type from the question but you can apply the same logic to other type with tweaking it a bit if required.
I have tried with select box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 08:11 AM - edited 02-09-2024 08:23 AM
Hi @mipalm ,
You can add a onLoad client script in the mvrs as
function onLoad() {
//Type appropriate comment here, and begin script below
var option = g_service_catalog.parent.getValue("user_type") // user_type is the variable name from the catalog item
g_form.setValue('user_type1', option); // user_type1 is the variable on the mvrs.
}
Not clear with the variable type from the question but you can apply the same logic to other type with tweaking it a bit if required.
I have tried with select box.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2024 08:31 AM
Hi,
This implementation worked!
Thank you for the quick reply