protecting parts of an Infopath form

J

johnpinter

I am currently re-designing all our forms in Infopath and was wondering if
there was a way to protect parts of a form from modification once filled in
and submitted. I have created some buttons on an Application for Leave form.
One submits the form by email to the Manager of the person filling the form
out. Another submits the form via email to the Admin department once the
Manager has approved it. I need to be able to protect the parts that should
not change once the form has been submitted.

Thank you in advance.
 
G

Greg Collins [InfoPath MVP]

You can add conditional formatting to the particular fields in question that makes them readonly once the manager has approved it.
 
J

johnpinter

I understand how you place the conditional formatting but how do you test
whether a button has been pressed? What condition do you test for?
 
G

Greg Collins [InfoPath MVP]

You add a rule to the button which sets a field value (it can be in a secondary data source), and then have the conditional formatting test the value of that field.

i.e. field: my:IsClicked = false
Click button -> set IsClicked = true
Conditional formatting: if (IsClicked = true) disable button.
 

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