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 / Checkbox changing a Te...
Power Apps
Answered

Checkbox changing a Text Input

(0) ShareShare
ReportReport
Posted on by 240

Hello Everyone,

 

Hope you are well!

 

Please could i have some assistance, i am trying to change a text input based on a checkbox being ticked within my gallery and then a button being pressed.

 

I have used the below OnSelect of my button 'set to leaver', but it doesn't seem to be working / doing anything.

 

If(Checkbox1.Value = true,TextInput3.Text = "Leaver"); Notify("This Record will be removed overnight - status set to leaver",NotificationType.Information,5000)

 

Any help is very much appreciated.

 

Many thanks

Chris

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Appy1 In PowerApps you cannot set values to control directly. So TextInput3.Text = "Leaver" will not work. You have to use variables.

    If(Checkbox1.Value = true,  Set(varText, "Leaver"); Notify("This Record will be removed overnight - status set to leaver",NotificationType.Information,5000)

    and set the Text property of the TextInput to, varText

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

  • CC-19121430-0 Profile Picture
    240 on at

    Hi @CNT 

     

    Hope you are well,

     

    Unfortunately my TextInput doesnt have the Text property there.

     

    Within Default i have currently: Gallery1_1.Selected.Status as i am pulling in an already exisiting value.

     

    What would you suggest?

     

    Many thanks
    Chris

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Appy1 

    Please try the following,

    In the OnVisible of the Screen,

    Set(varText, Blank())

    In the OnSelect of the button 'set to leaver',

    If(Checkbox1.Value = true, Set(varText, "Leaver")); Notify("This Record will be removed overnight - status set to leaver",NotificationType.Information,5000)

    In the Default property of the TextInput,

    If(IsBlank((varText), Gallery1_1.Selected.Status, varText)

     

    Please remember to give a 👍 and accept my solution as it will help others in the future.

     

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard