Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to suppress the initial (placeholder) Content? #38

Open
pcampbell-avodaq opened this issue Oct 9, 2024 · 2 comments
Open

How to suppress the initial (placeholder) Content? #38

pcampbell-avodaq opened this issue Oct 9, 2024 · 2 comments

Comments

@pcampbell-avodaq
Copy link

pcampbell-avodaq commented Oct 9, 2024

This is a fantastic extension to PowerApps - thank you so much!

One problem I'm having is that the component displays some default content when the app loads, and I don't seem to be able to prevent this behaviour.

I have Content=myVariable.

myVariable is blank when the app starts and at some is set to a string containing markdown.

However, when the app starts (or becomes visible), the default content is always shown.

It also doesn't seem possible to "reset" the content. If I perform an action in the app which clears myVariable, e.g. Set(myVariable,""), then this is not reflected in the markdown component (it continues to display whatever myVariable used to hold).

(Sorry, I'm more of a dabbler in PowerApps so some of my terminology may be off).

@megel
Copy link
Owner

megel commented Oct 9, 2024

@pcampbell-avodaq yes, I have seen this issue but I haven't fixed it yet.

However, you can bypass this issue at the markdown control property Content. Use this code snippet:

Coalesce(myVariable, " ")

The " " single space as default reset the control content.

@pcampbell-avodaq
Copy link
Author

Thanks. This workaround actually occurred to me yesterday, just didn't get round to adding it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants