@SomeUsernameHe it seems to be the other way round actually.
The code hides the section when blank but doesnt show it when it is filled in.
A user is trying to conditionally display custom metafield content on Shopify’s thank you page using JavaScript in the checkout settings’ additional scripts section.
Current Problem:
order.metafields.custom.message_to_customerGoal:
Only show the “Delivery message” section and its content when the metafield contains data; hide it completely when blank.
Status:
Another user suggested a conditional approach, but the initial attempt didn’t resolve the display issue when content is present. The discussion remains ongoing as they troubleshoot why filled metafields aren’t appearing despite the blank state being handled correctly.
@SomeUsernameHe it seems to be the other way round actually.
The code hides the section when blank but doesnt show it when it is filled in.