Restrict Locations based on Users

priyam123
Kilo Contributor

I have two users client user and enduser. I created two fields for refining the locations but both fields are showing same set of locations.

My Requirement : If the user is client user, he should get separate list of locations based on his role, similarly if the user is enduser he should be able to see separate list of locations other than client user.

How this can be achieved?

Regards,

Priyanka

1 ACCEPTED SOLUTION

Priyanka,



Just go to the dictionary of Location field. I assume in the reference table field you have given "Location" table.


Now select the Reference Qualifier as Simple:


Put the filter condition:


User     is         javascript:gs.getUserID();






PS: Hit like, Helpful or Correct depending on the impact of the response.


View solution in original post

12 REPLIES 12

Priyanka,



Do you need list of location depending upon the users or the role of the users.


Like Assume if user A is part of Location 1, 2, 3


So the location 1, 2, 3 will be listed when user A opens a form.


Is this your query?


Hi Mishra,



Yes you are right!!


I need locations depending on the user.



--Priyanka


Priyanka,



Just go to the dictionary of Location field. I assume in the reference table field you have given "Location" table.


Now select the Reference Qualifier as Simple:


Put the filter condition:


User     is         javascript:gs.getUserID();






PS: Hit like, Helpful or Correct depending on the impact of the response.


Thank you!!


It works


Hi mishra ,


One more thing I want to confirm, there is no field to write the condition ( javascript:gs.getUserID(); ),


So I selected Contact is user1 for field1 ?


Is this correct?