Add item to dropdown list and reset the list - InfoPath Dev
in

InfoPath Dev

Add item to dropdown list and reset the list

Last post 12-22-2011 03:19 AM by hirecrishecom. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 12-02-2011 04:45 AM

    Add item to dropdown list and reset the list

    Hello everybody,

    I have a Infopath 2003 form. On this form, I have a drop down list which will be filled with a data connection. Is it possible that I can add manually an additional item when I start the form? The reason is, that I get application names from the data connection, but I want to add an additional item called "Others".

    And another question. Is it possible to reset the drop down list? I mean, if I change the text from a text field, the value of the dropdown list should be empty – like at the beginning.

     I hope you can understand my questions. I would be very appreciate, if you could help me.

     Best regards,

    Daniel

  • 12-02-2011 08:11 AM In reply to

    Re: Add item to dropdown list and reset the list

    Hi - you can use rules to clear the value from the field bound to the drop down. So, add a rule to your field bound to the text box - and have it set the field bound to the drop down to blank.

    As to your first question - what is the data connection to? Is it a database table? If so, I'd create a view and use Union to add "Other" to the data at the DB level, then modify the connection to use the view.

    Hilary Stoupa

  • 12-02-2011 08:52 AM In reply to

    Re: Add item to dropdown list and reset the list

    Sometimes its too easy.... :) Thank you for the advice. Now I have some new rules within my form.

    In my dropdown list I get items from a Sharepoint list. And when they will be loaded at the beginning, I would like to add an additional Item "Others". Can I do it with Visual Basic?

  • 12-02-2011 10:44 AM In reply to

    Re: Add item to dropdown list and reset the list

    Sure, you could do this with code - but that seems like a lot of overhead for such a small feature. No way you can add "Others" to your SharePoint list?
    Hilary Stoupa

  • 12-03-2011 09:02 AM In reply to

    Re: Add item to dropdown list and reset the list

    No, I can not change the sharepoint list. Can someone of you help me to create the code?
  • 12-05-2011 10:12 AM In reply to

    Re: Add item to dropdown list and reset the list

    Here's an article that may help you. You can also do this with qRules if you prefer not to write the code yourself.
    Hilary Stoupa

  • 12-22-2011 03:19 AM In reply to

    Re: Add item to dropdown list and reset the list

    you can use rules to clear the value from the field bound to the drop down. So, add a rule to your field bound to the text box - and have it set the field bound to the drop down to blank.
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.