Drop Down List always remember old value? - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Drop Down List always remember old value?

Last post 06-24-2007 09:38 PM by Jeff.Wang. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 06-21-2007 10:46 PM

    • Jeff.Wang
    • Not Ranked
      Male
    • Joined on 06-18-2007
    • Sydney, Australia
    • Posts 13

    Drop Down List always remember old value?

    In a form I have a drop down list, and first for demo purpose I manually entered some items, and later I changed to use a data connection to return items in a SharePoint list, but I found when I preview, the drop down list always takes the first item of my manually entered stuff as the selected value, as if it can remember. The more weird thing is, when I choose some value from the data connection, after that that manually entered item disappears list a ghost. Can anybody help, thanks!

    Jeff Wang
    Sydney Australia.
  • 06-23-2007 02:00 PM In reply to

    Re: Drop Down List always remember old value?

    It is probably an issue with your template, when you updated the source for the drop down it did not clear out the default.

    You could switch back to entered items and see if you see the entry still sitting in there, remove it and then switch to your data source. I would probably delete the whole control and save or save as and then put it back in and that would probably take care of it.

  • 06-23-2007 04:05 PM In reply to

    Re: Drop Down List always remember old value?

    Hi Jeff.Wang and welcome to our forum,

    This is stock InfoPath behavior. The value exists in your XML file even though the control no longer knows about it. If you change the value, you will lose it - that's by InfoPath's design. Nothing you can do about that. Of course, you can undo the edit (ctrl-z) and it should return to the previous value.

    Patrick Halstead
    Project Manager at Qdabra
  • 06-24-2007 09:38 PM In reply to

    • Jeff.Wang
    • Not Ranked
      Male
    • Joined on 06-18-2007
    • Sydney, Australia
    • Posts 13

    Re: Drop Down List always remember old value?

    Hi Clay and Patrick, thanks for your feedback and it helped me.

    Also I found another way to figure out. In the Tool->Default Values, you can change the default value as you like, this way removes the value I manually input (InfoPath will use the same as the default value).

    Jeff Wang
    Sydney Australia.
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.