- 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 05:25 AM
Hi divyal09,
What I understand is you need to display a message 'please contact service desk for assistance' for a few accounts selected on a catalog item.
This need not be a pop up, it can be a simple message getting displayed on the form (try to avoid popups)
Write an onChange client script on accounts variable and check if the newValue is one of those 4 accounts, if yes display a message like this g_form.addInfoMessage('please contact service desk for assistance');
Thanks,
Chaitra
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2023 05:59 AM
The alert message is only displaying for one account not for all the accounts selected. The alert or message should be shown for multiple accounts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2023 06:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2023 06:20 AM