Autopopulate req for inside variable set variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2024 04:08 AM
I want to autopopulate logged in user in Requested for variable(Ref type). The variable contact is a part of variable set contact_and_account. For a perticular RP want to do this using client script. please help.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2024 04:16 AM
Using a client script would be less efficient then using the default value option on the variable set (see below).
But for client script you'd do the following
function onLoad() {
g_form.setValue('requested_for' , g_user.userID); //'requested_for' being the variable name
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2024 04:30 AM
for default value it will apply for all... but i want to apply for a perticular Record producer........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-20-2024 04:17 AM
Script include:
Client script:
Not working..........