I'm using a public web form to trigger a flow to create a Plumsail helpdesk ticket, which sits on a SharePoint page via the Plumsail forms webpart.
I'm not sure how to get the UPN/username of the user submitting the form.
I've created a field "Requester" which is read-only and will use JS to populate this with the UPN / or if there is a smarter way to do this, I'm all ears!
To set the field with the current user email in SharePoint you can use the below code:
fd.field('TextBox0').value = _spPageContextInfo.userLoginName;
Thanks! That worked!
I'm also trying to get the field data without having the field in the form (I'm using
If I don't add the field into the form, fd.field('abcd') object doesn't exist. How can I get the value of abcd without showing the field?
@atomicharri Here's one way to do that!
You need to add the field to the form and set the Style in the Parent Grid to
This way the data can be accessed and it won't be shown.