cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TravisG
Microsoft
Microsoft

How to use a toggle to update a textbox.

I'm a bit of a newbie to PowerApps and I hope someone can enlighten me. 🙂

 

I am trying to make an app where on the edit screen a value from my datasource is displayed in a text box as Y or N. I would like to traslate this to a toggle switch and be able to update the DS on form submission. Currently I have the toggle switch reading the value of the text box and setting its default value correctly. However, I'm not quite sure how to update the value of the textbox using the OnChange property of the toggle. Is it possible to write a formula on one control that will update the value of another control?

 

Thank you. 

1 ACCEPTED SOLUTION

Accepted Solutions
RezaDorrani
Dual Super User
Dual Super User

Hi @TravisG 

 

Yes it is possible,

on the text box control,

 

set the text property as

If(Toggle.Value,Toggle.TrueText,Toggle.FalseText)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

 

View solution in original post

2 REPLIES 2
RezaDorrani
Dual Super User
Dual Super User

Hi @TravisG 

 

Yes it is possible,

on the text box control,

 

set the text property as

If(Toggle.Value,Toggle.TrueText,Toggle.FalseText)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

 

Ah, of course! Thank you Reza!

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,791)