cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rho1967
Helper III
Helper III

Is it possible if I set the switch to inactive that the text of ingredients changes in edit screen (datacards)?

Is it possible if I set the switch to inactive that the text of ingredients changes in edit screen (datacards)?

1 ACCEPTED SOLUTION

Accepted Solutions

@rho1967 Yea, that's b'coz of circular reference. Do this then,

In the OnCheck of the Toggle control set a variable, Set(varIngredients, yourTextIngredientsInput.Text & ", " & "whatever ingredients") and then set the Default property of the ingredients TextImput to varIngredients.

 

Please remember to give a 👍 and accept my solution as it will help others in the future.

View solution in original post

6 REPLIES 6
CNT
Super User
Super User

@rho1967 In the OnCheck of the Toggle control set a variable, Set(varIngredients, "whatever ingredients") and then set the Default property of the ingredients TextImput to varIngredients.



Thanks.

Works perfectly if all text has to be overwritten. But if I want to supplement the text that is entered with other text?

@rho1967 Then set the Default property of the ingredients TextImput to Self.Text & ", " & varIngredients

 

Please remember to give a 👍 and accept my solution as it will help others in the future.

thanks.
I tried this but got an error message. (see picture)

@rho1967 Yea, that's b'coz of circular reference. Do this then,

In the OnCheck of the Toggle control set a variable, Set(varIngredients, yourTextIngredientsInput.Text & ", " & "whatever ingredients") and then set the Default property of the ingredients TextImput to varIngredients.

 

Please remember to give a 👍 and accept my solution as it will help others in the future.

Hi, I now have the line below. This works perfectly.

If(DataCardValue9.Value = false,Set(varIngredientenActive, "XXX-, " & ThisItem.Ingredienten ),Set(varIngredientenActive, ThisItem.Ingredienten))

 

Now when I set the switch to inactive it shows XXX-, in front of it. This works perfectly. When I call up the ingredient again it does indeed say XXX-, in front of it. Now it would be all right if I put the switch back to Active that the XXX-, before it disappears. How can I do this?

 

I hope you can still help.

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

Check out the New Ideas Site

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

Top Solution Authors
Top Kudoed Authors
Users online (4,822)