Page 1 of 1

js file loaded without being in the view

PostPosted: Wed Jan 03, 2018 7:46 pm
by libi4647
Hello guys.
I have this problem.
I need to put some validation in my forms, things like if the date is correct, numbers are correct or bigger and other things. I have successfully made this happend doing in the PHTML file in the view.
but this new application do not use view to show the data to the user.
What I need is to learn how to load JS file without being in the view. someplace like the controller or in the form.
Can someone please help me,
thanks

Re: js file loaded without being in the view

PostPosted: Thu Jan 11, 2018 7:41 pm
by andr8558
I believe you would get a better response if you asked this on StackOverflow. Unfortunately the forums over here seem pretty dead these days ...