- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 05:07 AM
If user selects multiple account in a field on catalog form on portal page then a popup should be visible for some of the accounts selected by the user, the account names are random and out of 12 account names 4 account names should show the popup like please contact service desk for assistance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 06:23 AM - edited 11-23-2023 06:24 AM
Hi @divyal09 ,
You can try something like this with onChange client script for that field. Kindly use proper backend names of the variable & account names.
var accountName = g_form.getValue('user_account_name')// please update the correct name of the variable where accounts are added.
if(accountName.indexOf('Account1') > -1 || accountName.indexOf('Account2') > -1 || accountName.indexOf('Account3') > -1 || accountName.indexOf('Account4') > -1){
alert('Please Contact certain team');\\ please rewrite ur expected msg inside the alert
}
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 06:23 AM - edited 11-23-2023 06:24 AM
Hi @divyal09 ,
You can try something like this with onChange client script for that field. Kindly use proper backend names of the variable & account names.
var accountName = g_form.getValue('user_account_name')// please update the correct name of the variable where accounts are added.
if(accountName.indexOf('Account1') > -1 || accountName.indexOf('Account2') > -1 || accountName.indexOf('Account3') > -1 || accountName.indexOf('Account4') > -1){
alert('Please Contact certain team');\\ please rewrite ur expected msg inside the alert
}
Thanks,
Danish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-23-2023 07:24 AM
Thank You for your help but the issue is like for all the account selected after the popup is shown its showing popup for all the accounts name not just for four accounts