title: Clear a form field and then set it to read only
body: <p>I have a check box and a text field in my InfoPath form. When the check box is unchecked, I would like to clear the field content and then mark it as read-only.</p>
  
  <p>I created a <strong>conditional formatting</strong> to mark the form as read-only and then a <strong>rule</strong> to clear the field content. However, I found that every time I enable both of them, the rule will not run. </p>
  
  <p>To make sure, I created a pop-up dialog box in the rule too and I found every time I enable the conditional formatting to change the text field as read-only the dialog box will not show.</p>
  
  <p>I am suspecting that by changing the text field to read-only suppresses the rule, which clears the text field content. Anyone knows how to fix this?</p>