How do I insert a "Combo Box"?

M

Maurice. 0o0~

I know how to insert a list box but I need to add a box that will allow the
end user to add their own answers. Any help would be greatly appreciated!

Thanks,

Maurice. 0o0~
 
M

Maurice. 0o0~

Thanks for your help - I also found the following suggestion.

Scott Roberts [MSFT]
Re: combobox in infoPath
Rohit,



InfoPath has a dropdown control but not a native ComboBox control. Here is
a way that you can simulate this behavior. It will allow you to mimic the
combo box functionality with built-in InfoPath controls:



1. Insert your dropdown bound to your field and add an option with a
value like : "Please Specify" as well as your other options

2. Insert a text box that is bound to the same field

3. Add some conditional formatting that will hide the text box if it is
a known value in the dropdown (besides for "Please Specify")

4. Add conditional formatting on the dropdown to hide when the value is
not empty and not a known combo value

This way, when "Please Specify" is chosen you will see the text box and not
the dropdown. If you empty the text box (and tab away) you will get the
dropdown again.

- Scott
 
S

S.Y.M. Wong-A-Ton

Yes, that could also work. Thanks for re-posting it.
---
S.Y.M. Wong-A-Ton


Maurice. 0o0~ said:
Thanks for your help - I also found the following suggestion.

Scott Roberts [MSFT]
Re: combobox in infoPath
Rohit,



InfoPath has a dropdown control but not a native ComboBox control. Here is
a way that you can simulate this behavior. It will allow you to mimic the
combo box functionality with built-in InfoPath controls:



1. Insert your dropdown bound to your field and add an option with a
value like : "Please Specify" as well as your other options

2. Insert a text box that is bound to the same field

3. Add some conditional formatting that will hide the text box if it is
a known value in the dropdown (besides for "Please Specify")

4. Add conditional formatting on the dropdown to hide when the value is
not empty and not a known combo value

This way, when "Please Specify" is chosen you will see the text box and not
the dropdown. If you empty the text box (and tab away) you will get the
dropdown again.

- Scott



S.Y.M. Wong-A-Ton said:
If you mean adding an item to a combo box, there is no combo box control in
InfoPath 2003, so you would have to either use a third party ActiveX control
or build your own. If you're using InfoPath 2007, you can use a web service
to add items to a combo box after the user has typed in a new item (see for
example
http://enterprise-solutions.swits.n...-add-new-item-to-dropdown-list&c=infopath2007).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top