Answers.Body: <p>If you are creating these as actual users in Craft, it should be possible to do it straight from the template without the need for a plugin, as long as you have Craft PRO (without PRO you anyways wouldn't be able to create more than one "admin" user, and one "client" user anyways):</p>
  
  <p>See the documentation here:
  <a href="https://craftcms.com/docs/templating/craft.users#email" rel="nofollow noreferrer">https://craftcms.com/docs/templating/craft.users#email</a></p>
  
  <p>Basically, you should be able to call <code>craft.users.email('your.email@address.com')</code> to check if it exists. Again, I haven't tested this myself, but it will then return the user if it exists, and otherwise I assume it will return <code>null</code>.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-30T01:02:10.177Z
Answers.Text: this worked!... only thing is now I dont know how to add a template dynamically with js to run this {% set users = craft.users.email('users@yahoo.com') %}
  
                          {% for user in users %}
                          <li>{{ user.name }}</li>
                          {% else %}
                          <li>not!</li>
                          {% endfor %}
Answers.UserDisplayName: MariaZ
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-30T11:04:53.177Z
Answers.Text: Maybe a way to go would be to build on the examples for login/registration pages. I'm not sure if they specifically give you feedback on whether the email exists (often this is left out for security reasons – if you know an email exists, it can be targeted for trying to hack that user). But it should be possible to extend the code for an unsuccessful login to check if the user exists. See https://craftcms.com/docs/templating/user-registration-form and https://craftcms.com/docs/templating/login-form
Answers.UserDisplayName: KSP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-29T16:08:36.167Z
Answers.LastActivityDate: 2017-07-29T16:08:36.167Z
Answers.UserDisplayName: KSP
Body: <p>I am trying to create a functionality in Craft where the user enter an email and the system is able to tell the user if the user exists or not similar to the attached screen:
  <a href="https://i.sstatic.net/WWeK4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/WWeK4.png" alt="enter image description here"></a></p>
  
  <p>I am very new to plugin development, and I am not even sure if I need one, I found this post, which looks very helpful, only thing is I really don't know how to implement it.
  <a href="https://craftcms.stackexchange.com/questions/8395/how-to-tell-if-user-exists?newreg=7abceb6cd96146b394914ac0ddd2fba0">How to tell if user exists</a></p>
  
  <p>Should I develop a plugin? And I don't understand the information on plugin website and I can't find an example where there is an input field on the front end.</p>
  
Tags: <plugin-development><craft-features>
Title: Craft plugin for input fields on the front end to check existing user
ThreadText: # Craft plugin for input fields on the front end to check existing user
  
  (Asked by: username_0 on 2017-07-29)
  
  I am trying to create a functionality in Craft where the user enter an email and the system is able to tell the user if the user exists or not similar to the attached screen:
  [![enter image description here](https://i.sstatic.net/WWeK4.png)](https://i.sstatic.net/WWeK4.png)
  
  I am very new to plugin development, and I am not even sure if I need one, I found this post, which looks very helpful, only thing is I really don't know how to implement it.
  [How to tell if user exists](https://craftcms.stackexchange.com/questions/8395/how-to-tell-if-user-exists?newreg=7abceb6cd96146b394914ac0ddd2fba0)
  
  Should I develop a plugin? And I don't understand the information on plugin website and I can't find an example where there is an input field on the front end.
  
  **Tags:** plugin-development, craft-features
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-07-29. Score: 3 | Accepted answer
  
  If you are creating these as actual users in Craft, it should be possible to do it straight from the template without the need for a plugin, as long as you have Craft PRO (without PRO you anyways wouldn't be able to create more than one "admin" user, and one "client" user anyways):
  
  See the documentation here:
  <https://craftcms.com/docs/templating/craft.users#email>
  
  Basically, you should be able to call `craft.users.email('your.email@address.com')` to check if it exists. Again, I haven't tested this myself, but it will then return the user if it exists, and otherwise I assume it will return `null`.
  
  > **Comments:**
  > **username_0**: this worked!... only thing is now I dont know how to add a template dynamically with js to run this {% set users = craft.users.email('users@yahoo.com') %}                          {% for user in users %}                         <li>{{ user.name }}</li>                         {% else %}                         <li>not!</li>                         {% endfor %}  
  > **username_1**: Maybe a way to go would be to build on the examples for login/registration pages. I'm not sure if they specifically give you feedback on whether the email exists (often this is left out for security reasons – if you know an email exists, it can be targeted for trying to hack that user). But it should be possible to extend the code for an unsuccessful login to check if the user exists. See https://craftcms.com/docs/templating/user-registration-form and https://craftcms.com/docs/templating/login-form  
  
  ---
  
  