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

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
Highlighted
Power Participant
Power Participant

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.

Highlighted
Helper I
Helper I

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.

 

 

Highlighted
Resolver III
Resolver III

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
Helper I
Helper I

Re: Set date depending of of field value

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!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (4,699)