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 Platform Community / Forums / Power Apps / if there is a changing...
Power Apps
Unanswered

if there is a changing in the textbox, toggle = true

(1) ShareShare
ReportReport
Posted on by 16

Hello everyone,

i have a text input field with Items and a text input canvas field with dates. The idea is, when someone make a change in this 2 fields the toggle should be true otherwise false.

lucarios1705_0-1721110596054.png

I have tried with formulas, but cannot find the right combo.

with my formular, the toggle switch to true when i click in other cells or outline of the field. the toggle switch not to true when i insert or change some values in the fields.

lucarios1705_1-1721110690082.png

How should i fix the formular in the right way to get this function?

thanky you,

BR Tom

Categories:
I have the same question (0)
  • anandm08 Profile Picture
    1,936 Super User 2024 Season 2 on at

    hi @lucarios1705 ,

    In the OnVisible property of the screen (or OnStart property of the app), initialize a variable to store the state

    of the toggle switch.

     

     

    // onChange
    Set(toggleState, false);

     

     

    For the first text input field (let’s call it TextInput1):

     

     

    // onChange
    Set(toggleState, true)

     

     

    For the second text input field (let’s call it TextInput2):

     

     

    Set(toggleState, true)

     

     

    Set the Default property of the Toggle control to the variable.

     

     

    toggleState

     

     

    If you need to reset the toggle state back to false at any point (e.g., when a form is reset), make sure to update the toggleState variable accordingly.

  • lucarios1705 Profile Picture
    16 on at

    Hello @anandm08,

    thank you for helping...have tried with the variable, but nothing changes...the toggle always stand on true when i input something in the fields or the field is empty.

    lucarios1705_0-1721114943479.png

    BR, Tom

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard