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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,912)