names & checkboxes

O

orelang

Hi,

I want to put 100 checkboxes into my form. Is possible to set their
names automatically (the 1st: box1, 2nd: box2, etc)?

thanx in advance,
Ore
 
G

Greg Collins [InfoPath MVP]

I am not aware of any way to do this unless each of the data nodes in your schema are named box1, etc. Then when you drag-and-drop them into the view, InfoPath will auto-create a label for them based on their node name.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Hi,

I want to put 100 checkboxes into my form. Is possible to set their
names automatically (the 1st: box1, 2nd: box2, etc)?

thanx in advance,
Ore
 
O

orelang

Thank you. It works. It is almost I want, but when I drag and drop any
data node into the view, InfoPath also creates a label (as you noted),
which I don't need (the meaning of checkboxes in my form results from
their position in it). Can I get rid of those labels (for example using
script)?
 
G

Greg Collins [InfoPath MVP]

There is a setting you can change to turn off automatic label creation.

Choose Options from the Tools menu.
On the Design tab, clear the Create Labels For Controls Automatically check box.

Hopefully this will cure the issue.

--
Greg Collins [InfoPath MVP]
Visit http://www.InfoPathDev.com


Thank you. It works. It is almost I want, but when I drag and drop any
data node into the view, InfoPath also creates a label (as you noted),
which I don't need (the meaning of checkboxes in my form results from
their position in it). Can I get rid of those labels (for example using
script)?
 
Top