Looking for Directives on Service Portal widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 06:49 AM
Hi All,
The requirement is to have a field on Custom Service Portal widget to allow multiple entries of email addresses comma separated.
I have a question and need suggestion/input for the same.
We can have something like this
<div class="form-group">
<label for="u_tech_cont">Support tech Contact(s)</label>
<input type="text" placeholder="Enter Support Tech Contacts" class="form-control" name="u_tech_cont" ng-model="c.ur.u_tech_cont">
</div>
However I wanted to check if we have any other multi-input directive in Servicenow that would allow multiple entries something like below
<ef-multi-input placeholder="Enter text here"></ef-multi-input> <script> var el = document.querySelector('ef-multi-input'); var fruits = [ { id: '1', value: 'banana', label: 'Banana' }, { id: '2', value: 'orange', label: 'Orange' }, { id: '3', value: 'grapes', label: 'Grapes' } ]; el.data = fruits; </script>
https://cdn.ppe.refinitiv.com/public/apps/elf-docs/book/en/elements/multi-input.html
Please let me know about other options or if we only have input text field
TIA
@Dr Atul G- LNG @Mark Manders @Danish Bhairag2 @James Chun @Harish KM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 06:50 AM
@Ian Leu @Ryan Duce Please request suggestion on the above
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 07:49 AM
Hi @DPrasna
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-29-2024 08:47 AM
It is a generic document and could not find a specific answer. Could you please share any specifics

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-01-2024 12:52 AM
As far as I know, a directive for this doesn't exist. I'd recommend against creating one.
Use a multi-row variable set with a variable of type Email in it, to use the baseline email validation in that field type which works very well