- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2024 02:40 PM
Hi all,
I have a requirement to populate a field - "User for whom a new signature is being requested" with the same value that is on the "Requested For" field.
Can someone please help me with the script.
Also, I have to make the field "User for whom a new signature is being requested" read only and I have used a UI Policy. However, it doesn't seem to be working correctly.
Any ideas?
Thanks,
Mallika
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 06:44 PM
Hello @Mallika Bhupath
In addition to my previous answer:
- This is because an onChange client script is in action.
- To auto-populate the requested_for field with logged in user an onload client script is required.
- If requested_for field is already populating correctly then look for onload catalog Client script and add a code in it:
g_form.setValue("user_for_whom_a_new_signature_is_being_requested",'requested_for');
Note: Add this line after the requested_for field is set.
"If you found my answer helpful, please like and mark it as the "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 10:20 AM
Hi @Juhi Poddar ,
So when I login, the Requested for is populated by my name. But this is not populating "User for whom new signature is being requested".
If I'm changing the requested for from my name, then the script is working correctly.
I will need to account for both the scenarios. Because most of the times logged in user is only the Requested for user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 06:44 PM
Hello @Mallika Bhupath
In addition to my previous answer:
- This is because an onChange client script is in action.
- To auto-populate the requested_for field with logged in user an onload client script is required.
- If requested_for field is already populating correctly then look for onload catalog Client script and add a code in it:
g_form.setValue("user_for_whom_a_new_signature_is_being_requested",'requested_for');
Note: Add this line after the requested_for field is set.
"If you found my answer helpful, please like and mark it as the "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2024 10:39 AM
Hi @Juhi Poddar ,
I would also need to account for logged in user (for the most part the logged in user is only the Requested for).
Any modification to the script?