After embedding form to Joomla validation no longer works.

  • aptus
    Asked on August 26, 2014 at 4:38 AM

    Hi

    When embedding jotform to joomla the required field doesn't work anymore, it just submit the form.

    Here's the link:

    http://partners.aptus.com/index.php/sales-support/certified-partner-user-portal

    Any ideas?

    Thanks

  • jedcadorna
    Replied on August 26, 2014 at 8:17 AM

    The source embed code might be conflicting some of your libraries in your web page. Kindly try using an iframe method and see if solves the conflict.

    I have cloned and copied your page then tried using an iframe embed code and the validation works fine. You can view the sample form here.

  • aptus
    Replied on August 26, 2014 at 8:24 AM

    I can't use an iframe because i'm passing user name variable from Joomla 

     

     

     

    <?php

     

    $user = JFactory::getUser();

     

    if (!$user->guest) {

     

    $username = $user->username;

     

    //$realname = $user->name;

     

    }else{

     

    $username = "guest";

     

    }

     

     

     

    ?>

  • jedcadorna
    Replied on August 26, 2014 at 9:57 AM

    Did you make any changes with the form source? I copied just your form source and validation doesn't work. Can you tell us which part of your form source has been modified?

    If haven't made any changes and just added your user name script please try copying this form source http://pastie.org/9504199 then add your PHP script then test the validation again. 

  • aptus
    Replied on August 26, 2014 at 10:49 AM
  • David JotForm Support
    Replied on August 26, 2014 at 11:29 AM

    Hi,

    I also tested your form and the form by itself, and the form embedded to my test page, using both the iFrame and Javascript method, works without issue:

    After embedding form to Joomla validation no longer works Screenshot 20

    As my colleague stated, one of the running on your page appears to be conflicting with the forms validation.  You could try commenting out the scripts one at a time to see which one or which combination is causing the conflict.