You are here

clickFileName

Used by the following Containers: 
Variable Type: 
Custom Javascript
Provides the filename of a file that is clicked
	function() {
// Gets the URLPath, Checks if it contains a "." 
  // (Beware of all potential .html pages or .aspx
// Returns the full Name of the file
    var urlpath = {{clickPath}};
	if (urlpath.includes(".") == 0) {
    	return undefined;
    } else {
    	var filename = urlpath.substring(urlpath.lastIndexOf('/')+1);
        return filename;
    }
}