cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patty789
Helper V
Helper V

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
v-yutliu-msft
Community Support
Community Support

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
mdevaney
Super User III
Super User III

@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?

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

 

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

v-yutliu-msft
Community Support
Community Support

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (66,536)