cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
C_McF
New Member

Amending the DatePicker display mode with a checkbox

I am trying to amend the display mode of a date picker based on a "N/A" checkbox. 

Currently it looks like:

C_McF_0-1609957859782.png

 

Are the oncheck / onuncheck properties correct? Currently these have no relevance to the date picker.

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@C_McF 

You cannot set properties of a control like that in PowerApps.  PowerApps is a no-code platform much like Excel that uses formulas.  Therefore you must reference items in your app and they will respond to the evaluation of the formula.

That said...Set the DisplayMode property of the DatePicker to the following:

If(Checkbox1.Value, Disabled, Edit)

And get rid of the formula you have in the Onxxxx actions of your checkbox.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@C_McF 

You cannot set properties of a control like that in PowerApps.  PowerApps is a no-code platform much like Excel that uses formulas.  Therefore you must reference items in your app and they will respond to the evaluation of the formula.

That said...Set the DisplayMode property of the DatePicker to the following:

If(Checkbox1.Value, Disabled, Edit)

And get rid of the formula you have in the Onxxxx actions of your checkbox.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

C_McF
New Member

Thank You, it works as I expected it now. Really appreciate the pointers.

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (10,743)