cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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.

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.

 

 

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

Exactly the solution. Thank you so much

Helpful resources

Announcements
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Kudoed Authors
Users online (35,624)