How to Visible certain field by user position

I would like to show how to hide fields in the form except for Manager.
For example: When creating New, the manager only can key in on the Confidential Information.

Staff Module

  1. Make sure the Staff Module has a Position and username

Module 1 - Configuration

  1. Go to Studio
  2. Click Add a field
  • Select → User
  • Module → Staff
  • Display Information → Name
  1. Click OK

  2. Set Formula Script → #CurrentUser

  3. Click Add a field

  • Select → Yes No
  1. Click OK

  2. Set Formula Script → True if #From#User#Position ==“Manager” else False

  3. Click Add a field

  • Select → Text
  • Rename → Confidential
  1. Click OK
  2. Set Visible → #Form#Checkbox
  3. Click OK

Result If Manager

Result If Non-Manager