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 / How to set time if a d...
Power Apps
Answered

How to set time if a dropdown value changes

(0) ShareShare
ReportReport
Posted on by 105

Hi,

 

I'm trying to make a ticketing system. 

When a status value set to 'closed' or 'solved' I should get the time and set it to ClosedDate.

Would someone help, please?

time.JPG

 

time.JPG
Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,928 Most Valuable Professional on at

    Hi @Setayesh2 

    In the DefaultDate of DataCardValue3

    If(
     DataCardValue14.Selected.Value="Closed" ||
     DataCardValue14.Selected.Value="Solved",
     Now()
    ),
    Parent.Default)

    In the OnChange of DataCardValue14

    Reset(DataCardValue3)

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • MatthewInwards Profile Picture
    138 on at

    Hi @Setayesh2 ,

    In order to do this you will need to control DataCardValue3 with a variable. (I am assuming from your code that DataCardValue3 links with your time column).

    All you need to do is set the default value for DataCardValue3 to be a variable name. Then, where you currently have your code collecting the current time, you can tell it to update that value by using the Set() or UpdateContext({}) command depending on whether you use a global or local variable.

     

    Let me know if you need help with this and I will provide screenshots of what I mean.

     

    Kind regards,
    Matt

  • ErwinR Profile Picture
    9 on at

    Hi @WarrenBelz, I'm having the same problem and your method solves it. Thank you!

    But just to confirm, for the part -

    OnChange of DataCardValue14

     

    is it Reset (DataCardValue14) or did you mean Reset (DataCardValue3)?

     

     

  • WarrenBelz Profile Picture
    154,928 Most Valuable Professional on at

    @Setayesh2 ,

    Should be 3 (now fixed)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard