
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2023 11:58 PM
Hi All, having a requirement,
Need to hide choices of the 'State' field based on the company selection.
need to try with onLoad script any suggestions.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 12:35 AM
Hi @Community Alums with an Onload client script as below you can achieve it, I had used Location instead of Country in the below , I had hided Canceled option in the below example
function onLoad() {
if (g_form.getValue('location') == '3e94ed7437d0200044e0bfc8bcbe5d9b') {
g_form.removeOption('state','8');
}
}
Cheers, hope that helps /Eswar
*** Please mark as "Correct" or "Helpful" as appropriate ***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 12:12 AM
You can use OnChange client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 12:35 AM
Hi @Community Alums with an Onload client script as below you can achieve it, I had used Location instead of Country in the below , I had hided Canceled option in the below example
function onLoad() {
if (g_form.getValue('location') == '3e94ed7437d0200044e0bfc8bcbe5d9b') {
g_form.removeOption('state','8');
}
}
Cheers, hope that helps /Eswar
*** Please mark as "Correct" or "Helpful" as appropriate ***
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2023 05:59 AM
Hello @Community Alums
Provided you the same approach, even after i updated accordingly.
As per new community rules, you can mark multiple solution as Accept. it will help future members, to reach up the post.
Regards,
Samaksh