Hi there,
Is there a way to conditionally display something based on a value in the database? For example, if user has user meta-key xyz show abc?
Best Regards
Hi there,
Is there a way to conditionally display something based on a value in the database? For example, if user has user meta-key xyz show abc?
Best Regards
Hey @kylehill,
Thanks for writing in! Yes, you can do that. Simply use the String condition and then find the User’s meta {{dc:user:meta key="xyz"}}
dynamic content.
Hope this helps.
amazing, thank you!
Sorry I should also ask the question, is it possible to condition it if there is a value.
For example, I have a custom meta field for a location. But some of my users haven’t input their location, so I only want to display a location if it’s actually there? Which means I won’t know which string to check, just that there is a string?
Hi @kylehill,
In that case, you can set a condition to a specific section and check if that specific value is not blank. The condition should be {{dc:post:meta key=“meta_key”}} is not blank, as shown in the given screenshot.
Hope it helps.
Thanks
amazing thank you!!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.