combobox.Add() - InfoPath Dev
in

InfoPath Dev

combobox.Add()

Last post 01-18-2007 12:55 AM by diaboloche. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-18-2007 12:03 AM

    combobox.Add()

    Hi,

    How to add item to a combobox with JScript? And to remove all items...?

    Thanks !
  • 01-18-2007 12:11 AM In reply to

    Do you want to do this dynamically while the form is running? I think this will be hard. You can programmatically change a secondary data source that is bound to the dropdown, but you'll have to write code to refresh the view. The dropdown is a windows control which is initialized OnLoad. It doesn't update dynamically and there's no easy way to access it. Why not just use a Web service or database to populate the dropdown?
    Patrick Halstead
    Project Manager at Qdabra
  • 01-18-2007 12:55 AM In reply to

    I have a textbox. It contains the value "5" for example. I wish to fill the combobox of 5 items: "1", "2", "3", "4", "5"... How to make?
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.