- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-13-2023 07:42 AM
On an interaction, I have a field name 'u_external_user'. It is a checkbox (True/False).
I want to toggle this field True if the Opened for field 'opened_for' is a user named External User. I believe a client script will be the best way to do this but need advice on this and code if anyone can help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-15-2023 05:12 AM
if(g_form.getValue("opened_for") == "sys id of the external user)
{
g_form.setValue("<external_user_checkbox" , true);
}
else
{
g_form.setValue("<external_user_checkbox" , false);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 04:35 AM
For this request, I am changing the value of the field to true. The scenario is:
If caller is 'External User', set the 'u_external_user' field to true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 04:41 AM
Hi @Community Alums ,
Ok, then you need a OnChange client script to set value to true.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 04:46 AM
I am using an onChange Client Script but it is not toggling the field. Here is the code:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 04:47 AM - edited ‎12-14-2023 04:58 AM
The 'u_external_user' field value is not changing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-14-2023 05:47 AM
Can you Share screenshot of the form filler that shows you have selected external user.
And your script.