I have a label on my main screen reflecting a global variable named DebugText. The text is set initially to a default value "debug" in the start property of the app.
This label is happily showing info until I use it in the select property of an icon in which I make a syntax error (wrong field name), the text just disappears. Not at using the icon, not just in this session, not just in this screen when i close and run it again, but even if I use the App, Run OnStart. And even all this when I remove (not correct but completely remove and replace with "false") the naughty code from the icon select and do it all over again. It has just vanished. It has seased to be. It is a dead label.
Then if I close the edit session completely and restart editing it from the powerapps without changing any code it is back again.
Is there any logic whereby I should not be surprised at all this?
The issue you are seeing might be because your icon action is removing the existing value and resetting the value of variable used in the label control. Can you please share the screenshot/ snippet for your icon?
Since your variable is blank. so there is nothing to show in the label, hence it is invisible.
One other thing you could do is, Open File from Top Navigation, select variable from the left menu and then go to specific variable, after selecting it, select uses property to see all the places where your variable is used. This might help you debug the issue for the value of the variable.
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!