Hi,
I am assuming you want to hide or show elements on your form base on the access level for that particular user.
Here is what I will do in general:
- In your form, create a data label to store the user's access level. Set the data label property to hide it.
- Go to rules, and add a "When form is initialized" rule.
- Under that rule, add a rule to call your SmartObject. Pass in the username in input mapping, and in output mapping, map the access level to the data label created in step 1. You can grab the current user's username in your rule by using the Context Browser, expand System Values > Current User > FQN. You can of course use the Name or Email, depending on what user property you used to map the user to their access level.
- Now you have a hidden data label, with the user's access level. You can use that to create additional conditions to hide or show controls on your form.
- Still within the "When form is initialized" rule, add "a control contains a specific value" condition.
- Configure the condition rule to check if the data label created in step 1 matches a certain value.
- Then under that condition, you can add rules to show or hide the controls you want.
- Repeat step 5 to 7 for the other access level in your list.
- You can add "and" to a existing condition you have added, then add another condition from the conditions list on the left.
If its a simple condition, I do not recommend using advance condition as advance condition are not exactly very visible. In order to determine what condition has been configured, you need to click on the Configure link. The other condition rules will just display up front what condition you have configured, so it is a lot easier for you to figure out what is going on just by browsing through your rule list.