After embedding form to Joomla validation no longer works.

  • Profile Image
    aptus
    Asked on August 26, 2014 at 04: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

  • Profile Image
    jedcadorna
    Answered on August 26, 2014 at 08: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.

  • Profile Image
    aptus
    Answered on August 26, 2014 at 08: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";

     

    }

     

     

     

    ?>

  • Profile Image
    jedcadorna
    Answered on August 26, 2014 at 09: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. 

  • Profile Image
    aptus
    Answered on August 26, 2014 at 10:49 AM
  • Profile Image
    david
    Answered 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:

    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.