Assigning values to combobox through code

M

madhur

Hello

I have been able to assign values to text boxes using
SelectSingleNode[XPath] , but How can I assign multiple values to
combobox throught code??

Regards.

Madhur
 
G

Greg Collins [InfoPath MVP]

It sounds as though it is not a "value" that you want to assign to the drop-down list box, but rather "options".

Assigning a value is identical to any text box, which you've already done.

To assign new options, you need to populate your drop-down list box via a repeating group in the main or a secondary data source. Then you would simply add new rows to the repeating group. The drop-down list box automatically updates itself when rows are added or removed.
 
Top