Hi,
I have created a custom javascript file. Which have methods
function myFunction(){
var x = document.forms["leadDetasilsform"]["leadName"].value;
if (x == "") {
alert("Name must be filled out");
return false;
}
}
I have created a Button in dashlet's ftl file and on this button click i have to call a function.
How to use/import separate js file for the form validation created in webscript?
At which location should I put my js for the form validation?