Metafield rich text

I created a Rich Text metafield for my product descriptions and linked it to a collapsible row, but it’s not showing up on the site. Can anyone help me with the code to fix this?

You should not need any code.
If your field type is compatible, it should work without any coding.

Depends on the theme though, but I doubt any theme will have collapsible row incompatible with RTE mf. Given the name “collapsible row” I’d guess it may be Dawn family theme, but need to be sure.

Can you share a screenshot of your configuration?

Here is mine:

Pulsera MACRAMÉ Negra y marrón claro hombre – ARMONTI this is the url I know it´s in spanish but I think yoe get the idea. I would like to have a unfondable descripction of the product, now as you can see I just put a shorten description for practical purposes. thanks

It is indeed the Dawn theme, and following the steps, I add the dropdown row, but it doesn’t allow me to see the content once it’s open, I can´t share images as I am a new user

You’ll have to edit the code to insert the metafield into the collapsible row. Edit the main-product.liquid and look for {% when ‘collapsible_row’ %} then find {{ block.settings.content }} and replace it with:

{% if product.metafields.custom.your_rich_text_metafield != blank %}
  {{ product.metafields.custom.your_rich_text_metafield.value }}
{% else %}
  {{ block.settings.content }}
{% endif %}

making sure to replace "your_rich_text_metafield" with whatever you named it.  I believe that will work.

Well, as seen in my screenshot, it’s possible to add a rich text metafield as dynamic source for the “Collapsible row” content input.
There is no need to edit theme code.

It’s hard to suggest anything without seeing your MF definition and how it’s added.

Also, the suggested code edit will make each collapsible show your MF if you have several collapsibles on one page.