The above image shows that i gave the field security so thats its visible to only particular groups, but when i accessed the interface from being in that group, i was unable to see the field even though i assigned the security so that it was visible to that particular group.
Discussion posts and replies are publicly visible
Are you saying the test user you tried to access the interface with was a member of all groups referenced in the "groups" list? Have you tried editing it to contain only one group at a time to see if the behavior changes?
I tried but it gave the same issue
Then you should confirm whether a!isUserMemberOfGroup() is returning the expected result for that username - simply open an unsaved Expression Rule editor, copy the function call into that, and replace loggedinuser() with the test user's username, and ensure that when you press "test", the result returns as "true".
Oh, will try that and see right now.