Skip to main content
Post a question

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Unanswered

Default filter value in Power Apps Portal and automatic apply

Posted on 21 Jun 2022 14:58:31 by 198

Hi,

I'm creating a simple entity list on a Portal.

my list is configured to be filtered with different options.

I want to have 1 of these choices selected by default (it's check box filter list) and apply it by default.

using Javascript and jquery I can select the default value, fine

but I'm not able to apply this selection, 

here the javascript I'm using:

$(document).ready(function(){
$("input[type='radio']:eq(0)").prop('checked','true');
$(".entity-grid").trigger("refresh");

});
apparently the list is not ready when my script starts.
how to wait and apply my filter?
thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans