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

DatePicker block edit

Hello people,


I have a screen that has two datepicker, I wish that in certain situations they were not editable, but I already put false in the IsEditable property, I already tried true, I also tried conditioning (if) the value of a variable, but they are always allowing editing, selection of dates.

 

Attempts:
attempt 1) IsEditable: If (varView = true; false; true)
attempt 2) IsEditable: false
attempt 3) IsEditable: true

 

None worked, I am not able to block the edition.


Please, how can I fix this?

 

Thanks!!!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Under which conditions don't you want the editable. varView if you can explain.

 

In the Displaymode of the DatePicker put:

 If (varView;DisplayMode.View; DisplayMode.Edit)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

4 REPLIES 4
Super User III
Super User III

Under which conditions don't you want the editable. varView if you can explain.

 

In the Displaymode of the DatePicker put:

 If (varView;DisplayMode.View; DisplayMode.Edit)

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

Community Support
Community Support

Hi @galdezanni ,

Could you please share a bit more about the "not editable"? You mean could not type date value manually within the DatePicker control, or you do not want the DatePicker dialog to show up?

 

The IsEditable property of the DatePicker is used to determine if you could type date value manually within the DatePicker control rather than disable the DatePicker Selection dialog.

 

If you do not want the DatePicker dialog to show up, I agree with @eka24 's thought almost, the DisplayMode property of the DatePicker control could achieve your needs. Please set the DisplayMode property of the DatePicker control to following:

If(
   'Specify Proper Condition Here when the DatePicker control should be disbaled'
   DisplayMode.Disabled,
   DisplayMode.Edit
)

 

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

great !!!!

It worked!!! Thank you!!!

thanks, I thought it was the IsEditable property that blocked this component

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (12,516)