         name: slugInput.getValue()
       , (err, name)->
         if name
-          slugInput.setClass 'slug-taken'
+          slugInput.setValidationResult 'slug', "Slug is already being used.", yes
+          KD.remote.api.JGroup.suggestUniqueSlug name.name, (err, newSlug)->
+            unless err
+              slugInput.setTooltip
+                title     : "Suggestion: #{newSlug}"
+                placement : 'right'
+              slugInput.tooltip.show()
         else
-          slugInput.unsetClass 'slug-taken'
+          slugInput.setValidationResult 'slug', null
+          delete slugInput.tooltip
 
     makeSlug = =>
       titleInput = modal.modalTabs.forms["General Settings"].inputs.Title

    modal = new KDModalViewWithForms modalOptions
    form = modal.modalTabs.forms["General Settings"]
    form.on "FormValidationFailed", ->
      form.buttons.Save.hideLoader()

  handleError =(err, buttons)->
    unless buttons

        if err then slugInput.setValue ''
        else
          slugInput.setValue newSlug
          verifySlug()

    getGroupType = ->
      modal.modalTabs.forms["Select group type"].inputs.type.getValue()
