I’m following this post on passing values through the HTML API:
However, when I do this, the values don’t properly render. The correct values do render for a second, but then is replaced with undefined.
Seeing that this post was created back in March of 2021, is this feature still supported?
Code stack you are integrating Builder with
REST API
Reproducible code example
Example URL:
Looking at the resulting HTML, it looks like the data value is passed to the options attribute as JSON string, and in the console the JSON payload has the data property converting the JSON string into an object instead of parsed as JSON:
{
"0": "{",
"1": "\"",
"2": "a",
"3": "v",
"4": "a",
"5": "i",
"6": "l",
"7": "R",
"8": "e",
"9": "w",
"10": "a",
"11": "r",
"12": "d",
"13": "s",
"14": "\"",
"15": ":",
"16": "\"",
"17": "a",
"18": "\"",
"19": ",",
"20": "\"",
"21": "p",
"22": "e",
"23": "n",
"24": "d",
"25": "R",
"26": "e",
"27": "w",
"28": "a",
"29": "r",
"30": "d",
"31": "s",
"32": "\"",
"33": ":",
"34": "\"",
"35": "b",
"36": "\"",
"37": "}"
}