Security level with hide fields

Security level with hide fields

I want to setup a security level for my fields. First I created a table with my employees that include their name and thier loginuserid. I also created a dropdown "Security Level" with value 1 to 5.

When I open a form (on add or on edit) I want to hide some fields in function of security level.

Everything works fine. But there is a small delay between the form load and the action of hiding fields. (Example: the user can see a price, and I don't want him to see that. He can't change it, but he can see it...) I used Fetch record to get the security level.

Is there another way to do that ?

Thanks

Pascal