SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Member
    Join Date
    Jan 2014
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    formcheck.js + joomla 2.5

    hi!

    I try to use formcheck.js in joomla. If the form is not valid, the error is not displayed. Need help.

    PHP Code:
    <script type="text/javascript">

    window.addEvent('domready', function() { formcheck = new FormCheck('adminForm') }); 

    Joomla.submitbutton = function(task) {

    if (task == 'property.cancel' || formcheck.isFormValid('adminForm') ) {
              <?php echo $this->form->getField('description')->save(); ?>
              Joomla.submitform(task);
            }
     
    }

    </script>
    Last edited by Mittineague; Jan 26, 2014 at 12:23. Reason: Added code tags


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •