Current User Email Address Keyword

I thought this would be simple, but I am not getting it to work, and I have tried many variations of the keyword, and nothing is working.


What is the global keyword to expose the current users email address? I tried: %globals_user_email% but that does not work. Keywords manual was no help for this one.

[quote]I thought this would be simple, but I am not getting it to work, and I have tried many variations of the keyword, and nothing is working.


What is the global keyword to expose the current users email address? I tried: %globals_user_email% but that does not work. Keywords manual was no help for this one.[/quote]



I think it's %globals_user_attribute_email%


Hmm...that does work. BUT, I was trying to put the keyword in a custom form, as the default value, so that when a logged in user went to the form, their name and email was filled in. The strange thing is, is that for the name default value I put %globals_user_name% and it showed up on the form like I wanted. But %globals_user_attribute_email% does not work as the default value of a field, BUT does work if I put it in the body copy.

Since %globals_user_name% worked, I assume that keywords work as the default value for a form field. So, could this be a bug?

I figured it out, but it is strange.


It was not working because I had a Validation Rule set to Valid Email. When I removed it, the keyword worked. When I add it again, it displays nothing. Is this the intended behavior?


yes, because it validates before the replacement and %globals_user_attributes_email% is not a valid email address. :)

http://bugs.matrix.squiz.net/view_bug.php?bug_id=2761


Interesting. Well, now I know!

Thanks again guys!