Dawn: Custom Liquid Section with Dynamic Source Option

I’m using Dawn Theme. I’m needing my Custom Liquid section to have an option to select a dynamic source. Is there a line of code I can add to the section file? Thanks!

For context, we have shortcodes added to a metafield for each product that will load a unique UGC gallery for each product.

Hello @pearlerwork

Here’s a simplified example of what the code might look like in your section file:


    

  • product.metafields.custom.sources represent the data structure where you store the dynamic sources for each product. Adjust this according to how your data is structured.
  • Replace “Apply” with an appropriate label for your submit button.

@rutvik_shop
In Shopify product section will the form action need. Is that managed by Shopify auto?
Thank you

@Arif_Shopidevs

In Shopify, the form action for product sections typically doesn’t need to be specified manually. Shopify handles form submissions automatically for product pages.

When a customer interacts with the product form, such as selecting options for variants or adding the product to the cart, Shopify’s JavaScript code manages the form submission process.

Thanks, @rutvik_shop - shouldn’t I be adding schema, not HTML?
I’m just wanting to add the little ‘dynamic source’ button in the top right like all the other fields have:

i’m having the same issue. did you get a resolutions? thanks