1

I have a QGIS project running on QField that allows the user to draw points/lines and assign attributes to them. As soon as the point/line is drawn, an attribute mask pops up where all the attributes and photos are filled in. Since this QField project is used by many users (each having an unique ID), it also asks for the ID of the user.

Is there a way to define the user's ID as current default value, so that the current user doesn't always need to select their ID in the dropdown?

Also, all the users use the same tablet at different times.

1

There are the variables user_account_name and user_full_name which access you Windows-"ID". These can be set as preset values for any field of the fitting type of a layer, thus entering the value automatically when a feature is created.

| improve this answer | |
  • All the users use the same tablet with the same project on it at different times. So, they would have the same ID. Is there a way to define an ID as soon as a different user starts editing the project? – Lara Nov 11 '19 at 9:18
  • But they have different user names & passwords? – Erik Nov 11 '19 at 9:21
  • At the moment, the project simply asks for a general password. I will try to set different passwords for each user. Thx for the idea! – Lara Nov 11 '19 at 12:58
  • user_account_name refers to the OS-user. – Erik Nov 11 '19 at 13:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.