You need to sign in to do that
Don't have an account?
Robert Wynter
ampscript+SSJS get html content as a string
I have a landing page that displays a dynamic list from a data extension. From another landing page. How can I call / retrieve the content of the other page. I want to add that content as a string into a dropdownlist. The page content is ["Program 1", "Program 2", "Program 3", "Program 4", "Program 5"];
I've tried:
I've tried:
%%[ set @JSON = HttpGET("insert URL here") ]%% // get JSON from ampscript var jsonObj = %%=TreatAsContent(HttpGet(@JSON)=%%; var evaluatedJSON = eval("(" + jsonObj + ")");
May suggest you please check with below links from the stack exchange community.
- http://salesforce.stackexchange.com/questions/54780/is-there-any-sort-of-html-to-string-functionality-in-ampscript
- http://help.marketingcloud.com/en/documentation/ampscript/ampscript_syntax_guide/content_ampscript_functions2/contentarea3/
Regards,Nagendra.