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

Welcome to the User Group Public Preview

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

secondImage

Demo Extravaganza Winner Announcement

Please join us on Wednesday, July 21st at 8a PDT. We will be announcing the Winners of the Demo Extravaganza!

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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 (2,087)