How to remove the static(design time)checkboxes'/items in the multi-select list box using code+IP2010 - InfoPath Dev
in

InfoPath Dev

How to remove the static(design time)checkboxes'/items in the multi-select list box using code+IP2010

Last post 01-27-2012 09:40 AM by Anson Hidajat. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-26-2012 10:58 PM

    How to remove the static(design time)checkboxes'/items in the multi-select list box using code+IP2010

     I am creating the infopath form from the list content type. The content type has site columns which have choice fields.The infopath form shows these choice fields in multiselect list box at design time.

    I am trying to delete these items using .DeleteSelf() method but its not getting deleted. It only makes it uncheck. If i add an item using .AppendChild() dynamically then its getting deleted using .DeleteSelf() method. But i want to remove all these items showing in design time. Any help would be highly appreciated.

  • 01-27-2012 09:40 AM In reply to

    Re: How to remove the static(design time)checkboxes'/items in the multi-select list box using code+IP2010

    So I understand your scenario correctly, you want to remove the choices from the MSLB control completely and not just uncheck them?  If that's the case, then you need to populate your entries for the MSLB from within the form and then you can use code to remove the nodes which will then remove the values from the MSLB control.

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

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