cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patty789
Level: Powered On

Toggle, label and text box

Hi,

 

I have a toggle, label and text box using an edit form. My issue is that when user says no the label disappers and i am left with a text box to enter data. When i enter anything in the text box on my data source which is a SharePoint list the No value does not show up. It only shows Yes it does not matter whether i choose yes or no in the toggle it only shows in my Sharepoint list as Yes. Is there a reason why? 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Toggle, label and text box

Hi @patty789 ,

Could you describe more clearly about these three controls' relationship?

Do you mean that if you trun off the toggle, the label disappears, if you enter data in the textinput, the toggle disappears?

Do you also want to use toggle to update the field in sharepoint list?

Could you tell me the field's data type that you want to update with this toggle?

1)The first demand:

Set the label's Visible:

If(Toggle1.Value=false,false,true)

Set the toggle's Visible:

If(IsBlank(!Textinput.Text),false,true)

2)the second demand:

if the field is text/yes or no type

set the toggle's datacard's Update:

Toggle1.Value

if the field is choice type(true/false)

set the toggle's datacard's Update:

{Value:Toggle1.Value}

 

Best regards,

Community Support Team _ Phoebe Liu
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

3 REPLIES 3
Super User
Super User

Re: Toggle, label and text box

@patty789 

The UPDATE property of a DataCard controls what happens when the form is submitted to Sharepoint.  Can you please share the code for the UPDATE property of the TextBox/Label?

patty789
Level: Powered On

Re: Toggle, label and text box

@mdevaney  here is what i have for the text box and the label

 

If(Toggle2.Value=false,DataCardValue32.Text,Label3.Text)

Highlighted
Community Support Team
Community Support Team

Re: Toggle, label and text box

Hi @patty789 ,

Could you describe more clearly about these three controls' relationship?

Do you mean that if you trun off the toggle, the label disappears, if you enter data in the textinput, the toggle disappears?

Do you also want to use toggle to update the field in sharepoint list?

Could you tell me the field's data type that you want to update with this toggle?

1)The first demand:

Set the label's Visible:

If(Toggle1.Value=false,false,true)

Set the toggle's Visible:

If(IsBlank(!Textinput.Text),false,true)

2)the second demand:

if the field is text/yes or no type

set the toggle's datacard's Update:

Toggle1.Value

if the field is choice type(true/false)

set the toggle's datacard's Update:

{Value:Toggle1.Value}

 

Best regards,

Community Support Team _ Phoebe Liu
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

Helpful resources

Announcements
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,609)