How to: custom validation (custom validate/check inputs) on AdsManager edit form at submit (Joomla 3.8, AdsManager, JQ)

For Joomla! 3.x Coding related discussions, please use: http://groups.google.com/group/joomla-dev-general

Moderator: ooffick

Forum rules
Please use the mailing list here: http://groups.google.com/group/joomla-dev-general rather than this forum.
Post Reply
adams1
Joomla! Intern
Joomla! Intern
Posts: 83
Joined: Fri May 12, 2017 7:34 am

How to: custom validation (custom validate/check inputs) on AdsManager edit form at submit (Joomla 3.8, AdsManager, JQ)

Post by adams1 » Sun Dec 17, 2017 8:37 pm

Where to put custom validation/check code at the AdsManager edit form (edit or content form is where the user posts ads) in the override edit\default.php file (this PHP file creates the form) to check inputs based on my own criteria (for example I want to check the value of an input based on two others, or check the numerical value of an input). And I would like to show the error messages for example on the predefined labels – (like the already built in check routine does) - or for example show a JavaScript alert.
At Juola they say that there’s something to do with JQuery, but I don’t have a clue exactly what and where in the file. And perhaps you could show some basic starting points / guidelines how (for example what stuff to use from JQuery) and where to put this code. I have a very basic JS knowledge.

In the script code (in the mentioned php file) I see jQ() functions, but no $().

I use Joomla 3.8.3, AdsManager extension, Protostar template.

Post Reply

Return to “Joomla! 3.x Coding”