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 / Using a Toggle, a labe...
Power Apps
Answered

Using a Toggle, a label and a text box

(0) ShareShare
ReportReport
Posted on by 250

Hello,

 

I have a toggle control that if you select it as Yes it will display a lable call test, but when user selects No the lable disappears and i have the text box to type anything, my issue is when i hit submit and i select No whatever i typed is not showing up and on my Sharepoint list datasource it shows as false. I have a formula in the visible property of the label that says this If(toggle.Value=true && IsBlank(textinput2.text),true,false). Any help will be much appriciated. 

 Pic 18.JPG

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @patty789 

    You must review the UPDATE property of your DataCard because it is currently referencing the toggle. It will look something like this.

     

    DataCardValue_Toggle.Value

     

    Instead, you want UPDATE to reference the Text label.  It should look something like this.

     

    DataCardValue_TextInput.Text

     

    ---
    Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

  • patty789 Profile Picture
    250 on at

    @mdevaney Is it possible to show both? So if user select yes the Test lable shows up and that is what i want, but when they select No and the label dissapears and its left with the text box i want the user to type as well on the text box. Currently my text box does not recognize when i type anything on the text box. How can i put both the lable and the text box in the UPDATE property?

  • Verified answer
    mdevaney Profile Picture
    29,989 Moderator on at
    If I understand correctly you want to reference the text input when the toggle is YES and reference the label when the toggle is NO. The solution applied to UPDATE should look something like this...

    If(Toggle.Value=True,TextInput.Text,Label.Text)

  • patty789 Profile Picture
    250 on at

    @mdevaney Thank you so much that worked for me. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard