-
aptusAsked 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
-
jedcadornaReplied 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.
-
aptusReplied 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";
}
?>
-
jedcadornaReplied 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.
-
aptusReplied on August 26, 2014 at 10:49 AM
-
David JotForm SupportReplied 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.