Get current user (public or not) after form submitted.

Pedro Costa asked on July 9, 2015 20:27


I've followed the guide on handling form's data via the API,

I'm using the BizFormItemEvents.Update.After event instead but can't figure out how to know if this is a public or admin use that submitted of the form.

Tried with SiteContext.CurrentUser however that's never set, I could do with knowing if the form was submitted with an alternative form or not (i'm using alternative's for insert and update), but at least that I could see the BizFormItem does not have this info.

Basically what I'm trying to achieve is be able to set a field to false (IsReviewed) if the update was done by a public user.

BTW, this question related to

Thanks in advance,

Cheers, P.

Correct Answer

Roman Hutnyk answered on July 9, 2015 22:56


Try to use MembershipContex.AuthenticatedUser


1 votesVote for this answer Unmark Correct answer

Recent Answers

Pedro Costa answered on July 10, 2015 11:26

Thank you Roman, that worked, i'm using MembershipContext.AuthenticatedUser.IsPublic()

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.