FAQ/running-custom-javascript-on-click.md
... ...
@@ -1,6 +1,14 @@
1
-#Running Custom Javascript Upon Clicking a Report Element
1
+#Run javascript via url links
2 2
3
-Place the method call in the URL field of advanced field properties with _**"javacript:"**_ before it.
3
+[[_TOC_]]
4
+
5
+##Question
6
+
7
+Can I customize links in reports to use javascript functions?
8
+
9
+##Answer
10
+
11
+Yes, you can. This can be performed on the report designer's fields tab when you click on the **Advanced** settings button next to a field. When the box pops up, there will be a URL textbox that can accept links as well as custom javascript. This can be used to count clicks, set hidden field values, send ajax requests, etc. To use this, simply place the method call in the URL field of advanced field properties with _**"javacript:"**_ before it.
4 12
5 13
6 14
![CustomJavascriptClick](http://wiki.izenda.us/FAQ/FAQ/custom_javascript_click.png)