How to insert a pdf link into collapsible row with metafield?

FluffyMeatball
Visitor
2 0 0

I see this question gets asked a lot and there is no real solution to it. 

 It has to be different for each product so obviously we need to use metafield but meta field won't let us insert anything other than richtext? Please help.

Reply 1 (1)

below_yellow
Shopify Partner
10 0 1

You cannot actually connect to metafield if the type is different.

Metafield type of url cannot be connected to a richtext.

 

In order for you to use the dynamic source, the metafield type and schema type must be the same.

below_yellow_1-1710668203499.png

 

In the collapsible row schema, you need to add similar to these lines.

{
"type": "url"
"id: "pdf_link",
"label": "PDF Link"
}

 Then you add it to the iteration section for the blocks.

"Everything takes longer than expected!"