Infopath 2013 - Unselect/uncheck Multi select listbox - Code Less - InfoPath Dev
in

InfoPath Dev

Infopath 2013 - Unselect/uncheck Multi select listbox - Code Less

Last post 09-28-2018 07:49 AM by Hilary Stoupa. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 09-17-2018 06:42 PM

    • SG123
    • Not Ranked
    • Joined on 08-21-2018
    • Posts 12

    Infopath 2013 - Unselect/uncheck Multi select listbox - Code Less

    Hello,

    I've used a multiselect listbox in InfoPath 2013, it displays data from a SharePoint list. Is there a way I can write a rule to select/check and unselect/uncheck all items in the listbox with out any code.

     Would really appreciate a response on the same. Thanks

  • 09-18-2018 02:20 PM In reply to

    Re: Infopath 2013 - Unselect/uncheck Multi select listbox - Code Less

    No, there really isn't. Multi-selects in InfoPath add nodes to the XML - the multi-select is bound to a repeating field, and when you click the checkbox, it adds a new instance of the repeating field. When you deselect, it removes it. You can test this by looking at the XML in a text editor. Unfortunately, InfoPath doesn't have any code-free way to add / delete repeating nodes.
    Hilary Stoupa

  • 09-18-2018 08:34 PM In reply to

    • SG123
    • Not Ranked
    • Joined on 08-21-2018
    • Posts 12

    Re: Infopath 2013 - Unselect/uncheck Multi select listbox - Code Less

    Thanks Hilary. Would it be possible for you to share the C# or VB code to implement "Select All" and "Deselect All" functionalities for a multi select listbox.

    Thanks as always!

  • 09-19-2018 07:36 AM In reply to

    Re: Infopath 2013 - Unselect/uncheck Multi select listbox - Code Less

    You can find a code sample here: http://www.bizsupportonline.net/infopath2007/programmatically-select-all-items-multi-select-list-box.htm
    Hilary Stoupa

  • 09-28-2018 04:24 AM In reply to

    • SG123
    • Not Ranked
    • Joined on 08-21-2018
    • Posts 12

    Re: Infopath 2013 - Unselect/uncheck Multi select listbox - Code Less

    Thanks, would be great if you can provide me a code for Deselect all in Multiselect listbox
  • 09-28-2018 07:49 AM In reply to

    Re: Infopath 2013 - Unselect/uncheck Multi select listbox - Code Less

    But I did. I provided a link to a code sample - that should be all you need. Did you have issues implementing this in your form? If so, can you give me some specifics?
    Hilary Stoupa

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.