cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Filter Power Portals Entity List Without Sign Up

Hey, I was trying to show list of application that I would like to filter the view. I have found several ways of doing the filter by contacts, however I'm not using log in in my website. I intend the list to show the application the applicant made, and the said applicant only submitted their data without signing in first. After submitting their data, they will be redirected to this page that show the list of application they made. Is there any way I can achieve that? Thanks in advance

byansakura_0-1599422541775.png

 

4 REPLIES 4
justinburch
Microsoft
Microsoft

Hi @Anonymous,

 

The only possibility would be with cookies (which you will want to follow laws for, unless you are controlling who your audience is), which the OOTB portal configurations won't follow.

You can consider storing something filterable on the application (maybe a token) and then using the steps identified here to secretly filter the list on this value. It won't be the best user experience.

 

You may instead need to store a cookie that can identify exactly the application GUIDs/auto-number/something and then use Liquid and HTML to build out a custom view. Again, implement some form of cookie compliance process to avoid any issues with EU based users. Either way, you're going to look at some assumed risk and hefty customization.

Anonymous
Not applicable

That is a good idea, I have the field email that is correlated to the input the user made. is there a way i can make a filter with a condition that the email is like the one the anonymous user just submitted? should i use cookie?

Hi @Anonymous,

 

Yes, you would need to use a cookie/local storage to save the value submitted on the form.

E.g. in application form:

$("#emailaddress1").change(function () {
  window.localStorage.setItem("lastEmail", this.value);
}

Then the following change from my other post:

<script>
document.ready(function () {
  var email = window.localStorage.getItem("lastEmail");
  if (email != null && email != "") {
    var $filterInput = $(".entitylist-filter-option-text input");
    if ($filterInput.val().length === 0) {
        $filterInput.val(email);
        $(".btn-entitylist-filter-submit").click();
    }
  }
});
</script>
v-xida-msft
Community Support
Community Support

Hi @Anonymous ,

Does the Anonymous Role have sufficient Read Permission to access your Entity the Entity List related to?

 

If the Anonymous Role does not have sufficient Read Permission to access your Entity the Entity List related to, I afraid that there is no way to achieve your needs in Power Apps Portal currently.

 

I assume that the Anonymous Role have sufficient Read Permission to access your Entity the Entity List related to, I agree with @justinburch 's thought almost.

 

You should store the entered email address from the Anonymous user into local storage using JavaScript code. Then you need to define a Text Filter in your Entity List through your Portal Management. More details about adding a Text Filter in Entity List inside Portal Management, please check the following article:

https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/entity-list/entity-list-filter-configuration/

 

After that, you could set a initial value for this Text filter box with the cached email address value, then you could use the javascript code @justinburch mentioned to filter your Entity List records.

 

Regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,757)