In the previous article found here, we saw how to capture the logged in user's details - whether they belong to HR or Leadership level using InfoPath rules and create the necessary flags for further usage.
In this article, we will continue the same with creation of rules that actually perform the task of hiding the sections, as per the flags we received in the first article. Finally, we will conclude with the usage of this solution by testing out multiple scenarios.
Step 5 - Create a flag for leadership user
In this step, we will create a rule to identify if the logged in user is from Leadership. Let us name the rule “Confirm Leadership user”. All the steps are the same as Step 2, except the fields changes to “isCurrentUserLeader” and one of the filter conditions form Permission Level changes to “Leadership. The changes are reflected in the screenshots below:


Step 6 - Hide the HR section for non-HR users
In the section for HR, add a formatting rule named “Enable HR view”. In the condition, select isCurrentUserHR and set the condition as “is blank”. After these changes are made, check the setting “Hide this control”








Roshan RathodPosted Jul 23, 2020, 12:49 AM
Good Job..keep it up buddy