Semantic-Org / Semantic-UI

Semantic is a UI component framework based around useful principles from natural language.
http://www.semantic-ui.com
MIT License
51.09k stars 4.95k forks source link

semantic UI not validating multiple emails #6273

Open jaipundir opened 6 years ago

jaipundir commented 6 years ago

I use semantic UI validation for validating emails. In my case semantic UI not validating multiple emails after comma or semicolon. My code as follow :

  $('.ui.form').form({
  on: 'change',
  fields: {
    email: {
      identifier: 'email',
      rules: [
        {
          type: 'email',
          prompt: 'enter valid email'
        }
      ]
    }

How can i validate multiple emails in semantic UI.

y0hami commented 6 years ago

This is not currently supported in SUI, however you could create a custom rule https://semantic-ui.com/behaviors/form.html#adding-custom-rules

jaipundir commented 6 years ago

Thanx @hammy2899