Please fill out as many of the following questions as possible so we can help you promptly! If you don’t know how to answer or it does not apply, feel free to remove it or leave it blank.
Builder content link
Symbol:
Offer page:
**
Builder public api key**
86c4a31f0077496096f43ee97dca3ae3
What are you trying to accomplish
*Okay this is kind of complicated. So bear with me.
Currently, we have a list of symbols with product names that we use on our offer page. We use dynamic symbol function to pull the correct Product name by targeting the symbol with a query parameter. Example: /offers?offerId=p90x will load the Offers page and the heading will say “Get P90x” etc. So we have dozens of products which means we have dozens of symbols. Everytime we add a product, we add a symbol. Seems tedious and unnecessary.
I have a heading symbol that has a content input of “Offer ID”, this should look up the entry of the Offer Heading model that corresponds. On the offer page itself I am using custom code to fill the content input with the offer id from the query parameter:*
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const hasOfferId = urlParams.has('offerId');
const offerId = (hasOfferId) ? urlParams.get('offerId'):false;
Seems like it’s working. However the issue I’m having is on the connect data tab:
I need this to be dynamic based on the content input of the symbol. So something like state.offerId. This would select the right entry from the Structured Data Model “Offer Headings” but it doesn’t seem to accept anything but plain text of the exact thing you want. When I try a custom query, it gives an error about “value expected (json 516):
Code stack you are integrating Builder with
NextJS, react, Shopify


