Search Box and multi select value in Info Path form


  • Hello,

    Can we implement search box for particular field and select values from that field?

    For example,

    I have "Customers" column, which is fetching values from "Customers" list in the InfoPath form field. Its multiple value selection lookup column. 

    I am editing list form in InfoPath form. so as I have long list for Customers value, can I implement Search on form for "Customers" field and select value/s respectively.

    Please assist.

    Thanking you in advance.



    Tuesday, March 07, 2017 9:09 AM

All replies

  • Hi Jayashri- if I understand you correctly, the following link provides a solution based on filtering the query using a user entered value:

    cameron rautmann

    Tuesday, March 07, 2017 4:12 PM
  • Thanks for the updates.

    But this is not the thing I am looking for.

    Search like in below link, explained for default form of list:

    Thanking you in advance.



    Wednesday, March 08, 2017 1:15 AM
  • Hi Jayashri,

    Please check the code below:

    <script src="//" type="text/javascript"></script>
    <script type="text/javascript">
    var lookupOptions;
    	lookupOptions=$("select[title='Customers possible values']").clone();
    	$("'Customers')").closest("td").next().prepend("<input id='searchLookupField' type='text' placeholder='Search Customers'/>");
    		var keyword=$(this).val();
    		var html="";
    		$("select[title='Customers possible values']").html(html);

    Add the code into a content editor web part into the list form page.

    Best Regards,


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact

    Wednesday, March 08, 2017 7:04 AM