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

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

Re: Set date depending of of field value

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
Super User
Super User

Re: Set date depending of of field value

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.

JimNoredlac
Level: Powered On

Re: Set date depending of of field value

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.

 

 

ChrisR
Level 8

Re: Set date depending of of field value

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

Re: Set date depending of of field value

Exactly the solution. Thank you so much

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 (6,228)