I am trying to set specific permissions to an infopath form if a certain check box is checked. Currently, the form will automatically inherit permissions from the top level site. I want to stop this and assign different permissions to that specific form when the check box is checked. Here is the code I have so far:
string chkBox = GetNodeValue("/my:myTipLead/my:OBDM/my:DocumentDesignation/my:AllCISOL1And2Members");
if (chkBox == "AllCISOL1And2Members")
{
}