Answers.Body: <p>From the documentation:</p>
  
  <blockquote>
    <p>If you want to force the user to submit only a value from the list (or
    leave to leave it blank), thereby <strong>preventing the user from creating
    new organization records</strong>, set the require_match config option to TRUE
    (it defaults to FALSE):</p>
  
  <pre><code>global $civicrm_setting;
  $civicrm_setting['eu.tttp.publicautocomplete']['require_match'] = TRUE;
  </code></pre>
  </blockquote>
  
  <p>This means, if you want to <strong>allow the user to create new organization records,</strong> you would omit this line, or set it to <code>FALSE</code>.</p>
  
  <p>Also note: If you omit the line or set it to FALSE, you won't actually see a "Create New" option; you'll just be able to type in the name of an organization that's not in the list of options.</p>
  
  <p>EDIT:</p>
  
  <p>Regarding the potential for typos and duplicates, that will always exist any time you allow the user to enter a new organization name. CiviCRM will  follow the unattended dedupe rule for organizations when deciding whether to use an existing org or create a new one.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-28T16:09:46.133Z
Answers.LastActivityDate: 2017-11-28T16:56:09.810Z
Answers.LastEditDate: 2017-11-28T16:56:09.810Z
Answers.UserDisplayName: TwoMice
Answers.Body: <p>As we understand it, this default is an either-or. Either it is set to FALSE, i.e. allows user to input anything into the field, including misspellings (?) </p>
  
  <p>-or- </p>
  
  <p>user may choose from a restricted list (group) "submit only a value from the list (or leave to leave it blank), " i.e. forced to leave.</p>
  
  <p>We would want it as a conditional. If the user cannot locate their employer, then they have option to "create new" organization (and create the ensuing relationship in civi) H</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-28T16:57:23.613Z
Answers.Text: This looks like a follow-up to my answer. If so, it's better as a comment to that answer than as a new answer. Please see my edit there about typos and dedupe rules.
Answers.UserDisplayName: TwoMice
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-29T15:29:07.040Z
Answers.Text: We're getting the message we need "50 reputation" to add comment above (?) re : duplicates can you clarify what is meant by "unattended" vs. "unsuperivsed" dedupe rule for orgs. right now, the extension appears to be working yet it creating a new org each time we select the correct Employer. Tried adding a new unsupervised rule based solely on name not working tho. H
Answers.UserDisplayName: Hardwick
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-29T15:42:47.363Z
Answers.Text: https://civicrm.org/blog/spidersilk/understanding-civicrm-dedupe-rules
Answers.UserDisplayName: Hardwick
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-11-28T16:34:15.657Z
Answers.LastActivityDate: 2017-11-28T16:34:15.657Z
Answers.UserDisplayName: Hardwick
Body: <p>We're already apply " Access API Permission " to anonymous user for creating Add New option organization to the current employer field but still not works. Civicrm-4.7. And added public automcomplete ext. to the current employer field. I go through the documentation <a href="https://github.com/TechToThePeople/publicautocomplete" rel="nofollow noreferrer">https://github.com/TechToThePeople/publicautocomplete</a> and added code in the civicrm.setting.php<a href="https://i.sstatic.net/iGMZW.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/iGMZW.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.sstatic.net/RDqfn.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/RDqfn.png" alt="enter image description here"></a></p>
  
Tags: <civievent><civicontribute><extension><autocomplete>
Title: Not found "Create Add new " option in the Current Employer field if the org name typing
ThreadText: # Not found "Create Add new " option in the Current Employer field if the org name typing
  
  (Asked by: username_0 on 2017-11-28)
  
  We're already apply " Access API Permission " to anonymous user for creating Add New option organization to the current employer field but still not works. Civicrm-4.7. And added public automcomplete ext. to the current employer field. I go through the documentation <https://github.com/TechToThePeople/publicautocomplete> and added code in the civicrm.setting.php[![enter image description here](https://i.sstatic.net/iGMZW.png)](https://i.sstatic.net/iGMZW.png)
  
  [![enter image description here](https://i.sstatic.net/RDqfn.png)](https://i.sstatic.net/RDqfn.png)
  
  **Tags:** civievent, civicontribute, extension, autocomplete
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2017-11-28. Score: 4
  
  From the documentation:
  
  > If you want to force the user to submit only a value from the list (or
  > leave to leave it blank), thereby **preventing the user from creating
  > new organization records**, set the require\_match config option to TRUE
  > (it defaults to FALSE):
  >
  > ```
  > global $civicrm_setting;
  > $civicrm_setting['eu.tttp.publicautocomplete']['require_match'] = TRUE;
  >
  > ```
  
  This means, if you want to **allow the user to create new organization records,** you would omit this line, or set it to `FALSE`.
  
  Also note: If you omit the line or set it to FALSE, you won't actually see a "Create New" option; you'll just be able to type in the name of an organization that's not in the list of options.
  
  EDIT:
  
  Regarding the potential for typos and duplicates, that will always exist any time you allow the user to enter a new organization name. CiviCRM will follow the unattended dedupe rule for organizations when deciding whether to use an existing org or create a new one.
  
  
  ---
  
  ### Answer by username_2 on 2017-11-28. Score: 0
  
  As we understand it, this default is an either-or. Either it is set to FALSE, i.e. allows user to input anything into the field, including misspellings (?)
  
  -or-
  
  user may choose from a restricted list (group) "submit only a value from the list (or leave to leave it blank), " i.e. forced to leave.
  
  We would want it as a conditional. If the user cannot locate their employer, then they have option to "create new" organization (and create the ensuing relationship in civi) H
  
  > **Comments:**
  > **username_1**: This looks like a follow-up to my answer. If so, it's better as a comment to that answer than as a new answer. Please see my edit there about typos and dedupe rules.  
  > **username_2**: We're getting the message we need "50 reputation" to add comment above (?) re : duplicates can you clarify what is meant by "unattended" vs. "unsuperivsed" dedupe rule for orgs. right now, the extension appears to be working yet it creating a new org each time we select the correct Employer. Tried adding a new unsupervised rule based solely on name not working tho. H  
  > **username_2**: https://civicrm.org/blog/spidersilk/understanding-civicrm-dedupe-rules  
  
  ---
  
  