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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Toggle button

(0) ShareShare
ReportReport
Posted on by 64

What seemed to be a straight forward quick coding on the toggle button is taking me ages to figure out the right set of conditions to apply :). I have a toggle button in my forms called "Is Active?". The purpose is to track whether a service is in active state or inactive state. The toggle button is false or in inactive state by default.  i have 4 other fields that im tracking - " Active marked by", "Active Marked Date", Inactive Marked by" & "Inactive Marked Date". in the new & edit pages, if the user checks the toggle button, i want the current user to be captured in 'Active marked by' textbox and current date to be captured in Active Marked Date field. in the edit page, if the user changes the active to inactive state by unchecking the toggle button, i want the Inactive marked by and inactive marked date fields to be populated by current user and date respectively. But i want to also retain the values in Active Marked by and Active Marked date fields for auditing purposes. Appreciate any help here.

 

Categories:
I have the same question (0)
  • Chris-D Profile Picture
    1,246 on at

    You can't set those values and keep a history.

     

    You need to create a separate table which tracks the changes for this, and add a new row to it each time your toggle is changed. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard