iftomkins
10 years agoMaven
How to run Freemarker code on click?
I have a bit of freemarker code which updates a user's profile fields: <#-- Call user click, set accepted terms --> <#assign response = restadmin("/users/id/${user.id}/profiles/name/ideas_terms...
- 10 years ago
hi iftomkins
from the screenshot, i roughly guessed your Community :-)
took a look at your endpoint, instead of
<#return "test"?json_string />
try this (since it's application/json - that's what you should be returning, the #return in freemarker is more for freemarker function calls)
{ "status": "ok" }
the endpoint should work ... then the client-side ajax should be working too ... i hope