We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Looking for Directives on Service Portal widget

DPrasna
Tera Contributor

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 

 

 

4 REPLIES 4

DPrasna
Tera Contributor

@Ian Leu @Ryan Duce Please request suggestion on the above 

Dr Atul G- LNG
Tera Patron

Hi @DPrasna 

https://www.servicenow.com/community/now-platform-forum/can-we-have-a-catalog-item-field-where-we-ca...

 

*************************************************************************************************************
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/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

It is a generic document and could not find a specific answer. Could you please share any specifics

 

Ryan Duce
Tera Guru

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