cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SandraAkujobi
Post Partisan
Post Partisan

Date/Time buttons on app

I created two date/time buttons on my app where a staff can clock in and out and the times they did so appears.

The formula used was : 

 

foor both buttons using the onselect properties: 

UpdateContext({vTime:!vTime})

 And the text inputs using the default properties:

If(
   vTime,
   Text(
      Now(),
      DateTimeFormat.LongDateTime
   )
)

The thing is when I click on the clock in button is also changes the time on the clock out text input and vice versa. Is there a way to fix this.

Also the buttons and text inputs are not part of the datasource, so they aren't visible on the browse screen as well as the detail screen, how would I add them to those screens.

1 REPLY 1
WarrenBelz
Super User
Super User

@SandraAkujobi ,

Please close this post as this is the same question.

Happy for someone else to have a go at it.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,912)