Author Topic: Custom Javascript in Composer 8.1.4  (Read 3585 times)

Offline ankur_khurana01

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Custom Javascript in Composer 8.1.4
« on: March 30, 2015, 12:39:20 PM »
Hi,

I am using composer 8.1.4 and want to create custom javascript and use it in the expression builder of "Assign" block. As per the documentation of composer, it is possible to create custom javascript by placing it in include/user folder. I did the same but the custom functions are not appearing in expression builder.

Am I missing anything? Has anyone used custom javascript functionality?

Regards,
Ankur Khurana

Offline Kubig

  • Hero Member
  • *****
  • Posts: 2752
  • Karma: 44
Re: Custom Javascript in Composer 8.1.4
« Reply #1 on: March 30, 2015, 12:56:29 PM »
Did you try to "generate" code (i.e. compile)? Do you see your JSP udner mentioned folder?

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Custom Javascript in Composer 8.1.4
« Reply #2 on: March 30, 2015, 01:41:23 PM »
Did you add the jscript file as reference on the CallFlow properties?

Offline ankur_khurana01

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: Custom Javascript in Composer 8.1.4
« Reply #3 on: April 01, 2015, 09:51:08 AM »
Guys,

Thanks a lot for the replies. I was able to resolve the issue. The issue was with callflow name as it had spaces in it. I renamed the callflow name without spaces and followed below mentioned steps to add custom javascript:

1) Create custom javascript and add in “Scripts” folder.
2) Add the script name in “Entry” block (In Global properties-->Scripts).

Compilation of the callflow is not required.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: Custom Javascript in Composer 8.1.4
« Reply #4 on: April 01, 2015, 04:15:16 PM »
Of course is required... Otherwise vxml file will not have those new properties