Auto Populate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 01:04 PM
1- Variable set
2- Varible set:-
Variable Set 1: Personal Details
Variables: name, email
Variable Set 2: Personal Details_Read
Variables: first_name, old_email
These are read-only, and should be auto-populated from the above(Variable Set 1).
this is for the Record producer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 02:19 PM
You would have to use a catalog client script on variable set 1 to achieve this. The script would need to be an onchange script that triggers most likely upon a row being added to variable set 1. This would depend on what/when you want the data populated in variable set 2.
Depending on if you want Variable Set 1 and 2 to match exactly or not the approach would change.
In either case you would have an onchange catalog client script applied to Variable Set 1 that would trigger on row add/delete/update depending on how you want the two mrvs to be related.
If you want them to be identical then you would have the script retrieve the value of mrvs and then use a g_form.setValue(mrvs_internal_name, mrvs_1_value). This works with very little effort if the two contain exactly the same variables and variable names. If they have different variable names or they aren't simply identical then the approach changes a bit and you will need to manipulate the json array of objects between when you retrieve it from mrvs 1 and apply it to mrvs 2.
Be careful because the g_form.setValue() method sets the entire mrvs so using it will erase whatever was in it before. So if you need to add a row to mrvs 2 when a row is updated in mrvs 1, similar to creating a change log for mrvs 1 then you will need to retrieve the value of mrvs 2, append the new row to it in script, and then us g_form.setValue() to update mrvs 2 to include the new row.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2025 07:52 PM
Thank you for your response. However, it seems it's not working- the value is not getting auto-populated in the field.