I have an airport field based on country. To do this I separated the fields in another module and dependency via jquery <br><br>El lunes, 17 de octubre de 2022, nilay khatri <<a href="mailto:nilay.spartan@gmail.com">nilay.spartan@gmail.com</a>> escribió:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Problems by approaches:<div><br></div><div>1. Text field:</div><div><br></div><div>It's a good approach, we can then add a JS to lookup based on the typed characters.</div><div><br></div><div>Problems:</div><div>- reporting becomes difficult</div><div>- role based values would not be possible</div><div>- management of values will need dev help every time</div><div><br></div><div><br></div><div>2. Using a separate module</div><div><br></div><div>Problem:</div><div><br></div><div>- You can't have multiple selections in the Reference field. To have a field like the Contacts field in Events with multi-selection is a pain.</div><div><br></div><div><br></div><div>Eventually you will spend the same effort as changing the behaviour of select2 with ajax, in any of the cases above. Also that will become a special case. So rather optimize the picklist uitype itself?<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 17, 2022 at 4:16 PM Ing. Matus Sopko <<a href="mailto:sopko@its4you.sk" target="_blank">sopko@its4you.sk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <font face="monospace">For </font>15k+ values, I will create new
    "Zip codes" Module with relation to Orga, Inv, ... modules.<br>
    <pre cols="72">S pozdravom / Best regards / Mit freundlichen Grüßen
Matus
IT-Solutions4You s.r.o.
</pre>
    <div>Dňa 17. 10. 2022 o 12:32 Oleg Antonov
      napísal(a):<br>
    </div>
    <blockquote type="cite">
      
      <div dir="auto">Why don’t you use text field for zip code? </div>
      <div dir="auto"><br>
      </div>
      <div dir="auto">I heard about integration with google address,
        maybe it could help.</div>
      <div dir="auto"><br>
      </div>
      <div dir="auto">If you decide to use dropdown for it, you better
        implement completely new field type with predefined values.
        Maybe with regular codes update from some source routine.</div>
      <div><br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">El El lun, 17 oct 2022 a las
            10:49, nilay khatri <<a href="mailto:nilay.spartan@gmail.com" target="_blank">nilay.spartan@gmail.com</a>>
            escribió:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div dir="ltr">Hi,
              <div><br>
              </div>
              <div>In one of our setups, the user has added 15k+ values
                to a picklist, which are the Zip codes.</div>
              <div><br>
              </div>
              <div>This slows the CRM like anything.</div>
              <div><br>
              </div>
              <div>Has anyone come across such scenarios? Any available
                solutions? </div>
              <div><br>
              </div>
              <div>Based on our initial research this happens because of
                the select2, and the fact that all picklist values are
                to be fetched and initiated. This leads to high resource
                utilization and DOM building gets slow. Imagine having 2
                or more zip fields :)</div>
              <div><br>
              </div>
              <div>As a solution we are thinking of changing the
                behaviour of select2 to load values using ajax.</div>
              <div><br>
              </div>
              <div>But then the challenge would be picklist dependency
                setups, as that would need all the mapping to be
                available anyways. So the load times and resource
                utilization is not going to have any major impact?</div>
              <div><br>
              </div>
              <div>Happy to collaborate.</div>
            </div>
            ______________________________<wbr>_________________<br>
            <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote>
        </div>
      </div>
      -- <br>
      <div dir="ltr">
        <div dir="ltr">
          <div>--</div>
          <div>С уважением, руководитель веб-студии PIN<br>
            Антонов Олег.
            <div>+7-921-922-91-91</div>
            <div><br>
            </div>
            <div><a href="http://pinstudio.ru/" target="_blank">http://pinstudio.ru</a></div>
            <div><font color="#999999">- Создание и продвижение сайтов</font></div>
            <div><font color="#999999">- Автоматизация бизнеса</font></div>
            <div><font color="#999999">- Увеличение продаж</font></div>
            <div><br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>______________________________<wbr>_________________
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a></pre>
    </blockquote>
    <br>
  </div>

______________________________<wbr>_________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
</blockquote>