Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to call javascript variable in API(Freemarker)

Ho to call javascript variable in Freemarker.

For Example

<#assign company_name = restadmin("users/id/${}/settings/name/").value/>

how to set in freemarker code.

Could you please help me on this.


1 Reply 1

@v-malls - You can't, unless you pass this to the endpoint in FTL. JS is client-side and FTL is processed on the server.

Varun : Weaving magic with Khoros!

Recent Ideas: Advanced Private Messages | Rewarding Module | Badges for Threads

Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Khoros customer? For direct assistance from our Support team, please visit the Support Forum.