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 / Add minutes in datapicker
Power Apps
Answered

Add minutes in datapicker

(0) ShareShare
ReportReport
Posted on by 298

Hello, how r u?

So, I have two times: "Agendamento do Forum" and "Horário do término"

I would like to add 10 minutes in "Horário do termino" basead on "Agendamento do Forum" 

 

luisabsg_0-1661867948177.png

 

like a sum:

luisabsg_1-1661868051216.png

 

If  "Agendamento do Forum" minutes is 10, "Horário do termino" minutes is 20. 

If "Agendamento do Forum" minutes is 20, "Horário do termino" minutes is 30. 

 

 

 

Someone can help me pls?

 

 

Categories:
I have the same question (0)
  • Verified answer
    WiZey Profile Picture
    3,023 Moderator on at

    Hello @luisabsg ,

     

    You will need to both define the second dropdown's default value and to reset it each time the user select a value in the first dropdown.

     

    First, define your dropdown's default value with the code below:

     

    Mod(Dropdown.Selected.Value + 10;60)

     

    This code will automatically calculate the n + 10 number. If your user selected "10", it will return "20". If he selected "50", it will return "0" and so on.

     

    Then, in the "OnChange" of your first dropdown, add the code below:

     

    Reset(Dropdown2)

     

    Be sure to replace "Dropdown2" with the name of your second dropdown.

     

    This will reset the dropdown, which means it will try and automatically select the default value if possible. 

     

    Now when your user select "10", it will reset the second dropdown and make it select "20". And so on.

     

    Hope this was helpful to you.

  • luisabsg Profile Picture
    298 on at

    ty 🙂

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 400 Most Valuable Professional

#2
11manish Profile Picture

11manish 141 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard