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

Datapicker default value no reset

is it possible that the Datapicker defaultvalue be the value of the field saved previously?

 

Now the defaultvaule is: "If(IsBlank(Fecha);Today();Fecha)"

1 ACCEPTED SOLUTION

Accepted Solutions

Sorry, I thought you were using Custom Sharepoint PowerApps. The control I was referring is this one:2018-06-18_17-02-34.png

 

 

View solution in original post

7 REPLIES 7
AlesonITC
Helper II
Helper II

So, you want to keep the value that the user select on the datapicker after you submit the form data for example?

Or you want to reset it to the initial value?

 

Regards.

Exactly, I want to keep the value that the user select on the datapicker after submit the form data.

You could do this:

 

DatePicker:

OnChange:

Set(Fecha, Picker.SelectedDate)

 

Default: 

If(IsBlank(Fecha), Parent.Default, Fecha)

I just tested this on a Sharepoint List Form PowerApps and it works.

Yes, it works correctly when I create a new item but it changes the value when the form is in edit mode.

Hmmm mine doesn't change whatever I do... check your OnEdit in the SharepointIntegration control or maybe something else that's being triggered on the Edit event.

Forgive mi ignorance, where is the SharepointIntegration control?

Sorry, I thought you were using Custom Sharepoint PowerApps. The control I was referring is this one:2018-06-18_17-02-34.png

 

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,016)