Select to view content in your preferred language

Pulldata() to acquire user log in?

480
3
Jump to solution
12-05-2017 11:51 AM
TL2
by
Frequent Contributor

Can you use pulldata() to get the log in username for current user?

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JamesTedrick
Esri Esteemed Contributor

Hi Tucker,

You can use the pulldata function on a non-select question with the username as a lookup value- that sounds like that might accomplish what you're wanting.

View solution in original post

0 Kudos
3 Replies
JamesTedrick
Esri Esteemed Contributor

Hi Tucker,

To get the username of the current user, there are two methods:

  • Have a question of type username in the survey 
  • Use the property('username') function
0 Kudos
TL2
by
Frequent Contributor

Thanks James,

I am am attempting to auto populate 2 fields based on what user is logged in.  I should be able to do this using cascading select.

What I don't like about my method is although it provides the user with the radio button to select the one choice, it still makes them select the one choice.  It would be nice if, based on the username, two fields were populated automatically.

Any suggestions? Thanks.

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Tucker,

You can use the pulldata function on a non-select question with the username as a lookup value- that sounds like that might accomplish what you're wanting.

0 Kudos