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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Users online (3,446)