Is there a method of dynamically generating check boxes in infopath2007?

L

Larry W. Virden

I have a SharePoint list of items - think ingredients that someone
might want on a pizza.

Right now, ideally, I would like on my browser compatible infopath
form to display one checkbox for each of the items in the list,
allowing the user to select from zero to all of the items.

However, I don't seem to see a way to do this. When I look at a
DropDown or regular ListBox control, it appears to me to only allow
one item at a time to be selected.

I really don't want to create a repeating section - that user
interaction would be annoying to someone trying to do this. I also do
not wish to hard code the form to pre-create the series of checkboxes.

Can anyone point me towards a tutorial or example of how to do this?

Thank you.
 
S

SMS

I have a SharePoint list of items - think ingredients that someone
might want on a pizza.

Right now, ideally, I would like on my browser compatible infopath
form to display one checkbox for each of the items in the list,
allowing the user to select from zero to all of the items.

However, I don't seem to see a way to do this. When I look at a
DropDown or regular ListBox control, it appears to me to only allow
one item at a time to be selected.

I really don't want to create a repeating section - that user
interaction would be annoying to someone trying to do this. I also do
not wish to hard code the form to pre-create the series of checkboxes.

Can anyone point me towards a tutorial or example of how to do this?

Thank you.

Alas you will have to use repeating section/tables. But thing is
users will not have to insert it but you will have to using code.
Check out the link below:
http://www.infopathdev.com/forums/p/6776/25456.aspx
 
D

darkstar

I accomplished something similar through creative use of conditional
formatting, with multiple conditions that determine whether a checkbox
appears (e.g., when a group selector checkbox is selected) or is
selected by default (e.g., when "Select All" is true). You don't have
to create a repeating section, but it does take a lot of work if you
have to deal with a lot of checkboxes. Then again, it doesn't seem
like InfoPath was designed to make things easy for the developer (it
doesn't even allow user overwrite of drop down list choices, for
example, unlike in Access where you can simply set Yes or No to
"Restrict to List").
 

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