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

Set date depending of of field value

Hi

 

I've one date field called DateActivity, a dropdown text named  Activity and 4 others date fields with hours.

When the user set a date in date Activiy, I want to set the same date in the other fields if value of dropdown is "BLOC".

I thought something like, onChange in DateActivity:

if(Activity.value="BLOC";Date1.value=DateActivity.value;"")

But this is not working, and how set the same value in Date2, Date3, and Date4 ?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Resolver III
Resolver III

Set the DefaultDate in the 4 other datacardvalues to:

 

If(DataCardValue(Don'tKnowNumber).Selected.Value = "BLOC",DataCardValue12.SelectedDate)

 

Hope it helps,

Chris

View solution in original post

4 REPLIES 4
Highlighted
Memorable Member
Memorable Member

Hi @JimNoredlac,

 

To better understand what are you trying to achieve in big picture. Can you please share printcreen and the whole idea? Like what do you want to use those Date fields with hours use for? Or better whole PowerApp?

It will be much easier to possibly find solution for what you are trying to achieve.

P.

Highlighted

sorry !

Here's my app.

I want that all days get the same value when I select a date.


Capture d’écran (15)_LI.jpg

 

 

 

 

 

 

 

 

 

 

 

 

Thanks for help.

 

 

Highlighted
Resolver III
Resolver III

Set the DefaultDate in the 4 other datacardvalues to:

 

If(DataCardValue(Don'tKnowNumber).Selected.Value = "BLOC",DataCardValue12.SelectedDate)

 

Hope it helps,

Chris

View solution in original post

Highlighted

Exactly the solution. Thank you so much

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,881)