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

 

 

ChrisR
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,147)