Conditional rules apply on existing forms

Hello,

Could you please help with following logic (InfoPath form 2010):

If "Status" field is equal to "Approved" or "Rejected" and Account Name not equal "domain\user" then disable fields.

I've tried several conditions, like:

Status equal to "Approved" or
Status equal to "Rejected" and
Admin is not equal to "domain\user"
Disable this control

And so on, but it behave not as expected. So I decided to add new field called "CheckStatus" which checking status. If it's "Approved" or "Rejected" it takes 1, else 0.

Then I made this, and it works.

CheckStatus equal to "1" and
Admin is not equal to "domain\user"
Disable this control

1. Problem, that CheckStatus not taking value on existing forms. You need to open form and re select value.
2. Is this logic is OK, or there is another way how to do it better?
3. A have a lot of fields which should be disabled on the same condition. How can I apply same rule for all of them? Or I need add rule for each field?

Thanks.





June 23rd, 2015 5:30am

Hi Azamat,

After you added a new control and published the form template, for the existing forms in SharePoint library, it would take the default value for the new added control. If you want to change the value of the control, you need to open the form and set it. It is normal.

Your logic is ok, you can do the form template as it.

If you have a lot of fields which should be disabled on the same condition, per my knowledge, there is no way to set all of them at one time, you need to add the rule for each field.

Best Regards,

Free Windows Admin Tool Kit Click here and download it now
June 23rd, 2015 10:26pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics