web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Set date depending of ...
Power Apps
Answered

Set date depending of of field value

(0) ShareShare
ReportReport
Posted on by 43

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

Categories:
I have the same question (0)
  • vecerpa Profile Picture
    786 on at

    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 Profile Picture
    43 on at

    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.

     

     

  • Verified answer
    ChrisR Profile Picture
    141 on at

    Set the DefaultDate in the 4 other datacardvalues to:

     

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

     

    Hope it helps,

    Chris

  • JimNoredlac Profile Picture
    43 on at

    Exactly the solution. Thank you so much

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard