cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
resteve
Level: Powered On

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
Eickhel
Level 8

Re: Datapicker default value no reset

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
Level: Powered On

Re: Datapicker default value no reset

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.

resteve
Level: Powered On

Re: Datapicker default value no reset

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

Eickhel
Level 8

Re: Datapicker default value no reset

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.

resteve
Level: Powered On

Re: Datapicker default value no reset

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

Eickhel
Level 8

Re: Datapicker default value no reset

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.

resteve
Level: Powered On

Re: Datapicker default value no reset

Forgive mi ignorance, where is the SharepointIntegration control?

Eickhel
Level 8

Re: Datapicker default value no reset

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,149)