ty for replying back.
would it be possible to put a link to the JavaScript file in the head section of the form?
would it be possible to put a link to the JavaScript file in the head section of the form?
Hi abu_sufi,
If you have a JavaScript file you can add it to the page header with
Bob
If you have a JavaScript file you can add it to the page header with
<?php
$doc =& JFactory::getDocument();
$doc->addScript('full_file_url_goes_here');
?>
Bob
Hi abu_sufi ,
You can add the PHP snippet in a Custom Code action in the On Load before the Show HTML action (jn CFv4) or in the Form HTML box (in CFv3).
Bob
You can add the PHP snippet in a Custom Code action in the On Load before the Show HTML action (jn CFv4) or in the Form HTML box (in CFv3).
Bob
Thank you for you're respond but I'm having no luck 😶
I've added Custom Code before the show html, placed the 2 JavaScript files inside ...components/com_chronoforms/js folder.
linked the 2 files inside custom code and can't get it to work. Is there any simple tutorial I could follow that will show me how to add JavaScript files?
Kind Regards.
I've added Custom Code before the show html, placed the 2 JavaScript files inside ...components/com_chronoforms/js folder.
linked the 2 files inside custom code and can't get it to work. Is there any simple tutorial I could follow that will show me how to add JavaScript files?
Kind Regards.
This topic is locked and no more replies can be posted.