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

How to call javascript variable in API(Freemarker)

Ho to call javascript variable in Freemarker.

For Example

$.each(data.response.users,function(index,value){
<#assign company_name = restadmin("users/id/${value.id}/settings/name/profile.company").value/>

how to set value.id 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.