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.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,452)