Can you disable a control(a checkbox) from code?

T

Tag

What im trying to do is i have a repeating secton, that one of the
fields is a primary contact checkbox, so if someone selects this, then
a new contact section is created(a new repeating section) and i want
code to check and automaticaly disable the primary contact checkbox so
that there isnt a conflict of two primary contacts
 
G

Greg Collins [InfoPath MVP]

If you add conditional formatting to the check box to tell it to disable if another node has a certain value -- then you can use code to set that other node's value. The other node can be in a secondary data source so that it does not get saved with the maind DOM.
 

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