web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Default on startup

(0) ShareShare
ReportReport
Posted on by 193

Hi,

 

Is it possible to enable the checkbox default. I can set the value to true by default, but then it does not take my command that is OnCheck.

How can I do this?

 

My command OnCheck is

Collect(ColStatus,"pc")

 

My command OnUncheck is

Remove( ColStatus,First( Filter( ColStatus, Value="pc" ) ) )

 

Regards,

 

Raymond

CheckBox.png
Categories:
I have the same question (0)
  • leo41 Profile Picture
    83 on at

    What exactly are you trying to achieve?

    So the Checkbox should be set to 'true'  on default? And the OnCheck function should be called when the Checkbox is set to 'true' even when it is set to 'true' by default?

  • rvdhorst Profile Picture
    193 on at

    Hey,

    I would like that when I start the app some checkboxes are checked and the command under check is executed when the app is started.

    Regards
    Raymond

  • Verified answer
    Rahber Profile Picture
    1,935 on at

    So you can do things.

    1) Make the checkbox on by default.
    2) On the On visible function of the screen you can pass this formula Collect(ColStatus,"pc");ollect(ColStatus,"ov");

    Inshort on visible of the screen you can setup things you like that you want as part of default behavior of checkboxes.

    onvisible.PNG

  • rvdhorst Profile Picture
    193 on at

    Thanx,

     

    This is the solution.

     

    Regards,

    Raymond

     

  • rvdhorst Profile Picture
    193 on at

    Hi,

     

    I thought he was all right. But it doesn't work with 2 arguments. I get the; shown in red. See picture

     

     

    Regards,

    onvisible.png
  • Verified answer
    Rahber Profile Picture
    1,935 on at
    This is because you are using a different locale on European Side

    You should use this
    Collect(ColStatus;"pc");;Collect(ColStatus;"ov");

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard