cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
byansakura
Advocate II
Advocate II

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 @byansakura,

 

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.

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 @byansakura,

 

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 @byansakura ,

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-...

 

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,165)