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 / How to change a text f...
Power Apps
Unanswered

How to change a text field depending on a toggle

(0) ShareShare
ReportReport
Posted on by 8

Hi,

I would like to know if it's possible to change a value in a text field depending on a toggle?

Let say I click on the toggle and I want the percentage change from whatever it was, to 100.

Thanks.

 

 

 

Categories:
I have the same question (0)
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @xnat 

     

    Can you add the below expression on the Text property of the text label control:

    If(Toggle1.Value, 100, ValueToShowWhenNotChecked)

    Here, you need to replace ValueToShowWhenNotChecked with the existing expression in the Text property.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

  • xnat Profile Picture
    8 on at

    It's a free text field that I want to change to 100 when toggle is on.

    That free text field has no text property.

  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @xnat 

     

    I saw 25 mentioned in the screenshot that you shared earlier so thought that there is some other value. If this is not the case, then you can update the expression to: If(Toggle1.Value, 100)

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • xnat Profile Picture
    8 on at

    Good, the value is save to 100 but the toggle does not save as "on".

  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    @xnat 

     

    How are you saving the details and where? What is the column type where do you want to store the toggle value? If you can share more details, we might be able to help you better.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • xnat Profile Picture
    8 on at

    It's my error. The toggle was not associated to a column in my sharepoint list.

    Everything works now.

    Thank you very much.

    I really appreciate your help.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard