Forums

Required fields does not work

GreyHead 13 Oct, 2009
Hi Morten,

There's a JavaScript error on the page - if you look at the form without the template the validation is working OK.

The error appears to be something to do with the top box
($(filter) || document).getElementsBySelector is not a function
$ES("div.topbox", Object name=filter)

Bob
mortensamson 14 Oct, 2009
Okay...

so, how i do I fixe itπŸ™‚

morten
GreyHead 14 Oct, 2009
Hi Morten,

Sorry, no idea - I think it's something in the template.

Bob
GreyHead 19 Oct, 2009
Hi Fritz,

I think that the problem is that your fields don't have id attributes and the LiveValidation isn't picking them up correctly. test by adding id='nome' to the Name input and see if the validation then works.

If that's not the problem we'll take another look.

Bob
Fritz 20 Oct, 2009
I have modify the code an insert the id tag..

<tr>
<td>Name</td>
<td id="nome" colspan="2">
<input maxlength="68" name="nome" size="68" type="text"></td>
</tr>

but the validation not will work.

I use as html/php editor the new Expression Web3 (for the table construction). I attach the complete form code.

I'm doing different tests, with change the code syntax such as:
<tr>
<td>Name</td>
<td colspan="2">
<input id="nome" maxlength="68" name="nome" size="68" type="text"></td>
</tr>

but unfortunately there is no way to make run the fields check.
If you want I can give you an account for your verification.....

This the error log in PHP:
[23-ott-2009 08:34:18] PHP Notice: Undefined offset: 0 in E:\Danielilacastellana\modules\mod_hotelmenu\helper.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 13
[23-ott-2009 08:34:18] PHP Notice: Trying to get property of non-object in E:\Danielilacastellana\modules\mod_hotelmenu\helper.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 13
[23-ott-2009 08:34:18] PHP Notice: Trying to get property of non-object in E:\Danielilacastellana\modules\mod_hotelmenu\tmpl\default.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 17
[23-ott-2009 08:34:34] PHP Notice: Undefined index: TRANSACTIONID in E:\Danielilacastellana\components\com_chronocontact\plugins\cf_paypal_api.php on line 408
[23-ott-2009 08:34:34] PHP Notice: Undefined index: AVSCODE in E:\Danielilacastellana\components\com_chronocontact\plugins\cf_paypal_api.php on line 412
[23-ott-2009 08:34:35] PHP Notice: Undefined offset: 0 in E:\Danielilacastellana\modules\mod_hotelmenu\helper.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 13
[23-ott-2009 08:34:35] PHP Notice: Trying to get property of non-object in E:\Danielilacastellana\modules\mod_hotelmenu\helper.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 13
[23-ott-2009 08:34:35] PHP Notice: Trying to get property of non-object in E:\Danielilacastellana\modules\mod_hotelmenu\tmpl\default.php(2) : eval()'d code(1) : eval()'d code(1) : eval()'d code on line 17
[23-ott-2009 08:34:35] PHP Notice: Trying to get property of non-object in E:\Danielilacastellana\includes\router.php on line 387
Fritz 23 Oct, 2009
After evaluating the errors reported in the php error log (on the server), I tried to use the wizard editor (of chronoform). The generated html code is totally different. It contains variables and tags that are not present in the standard code created by me (on Expression Web3).

I am afraid of not being able to use the old forms that I had already created for my clients and begin to create new modules with your wizard. 😟

I will again testing after the new creating of the modules. I believe that the current failure depends of the different code generated by me. :?
GreyHead 23 Oct, 2009
Hi Fritz,

The Wizard Edit will only work on Forms Created with the Form Wizard - and if you use Wizard Edit you will lose any edits made by hand.

So the Wizard Edit is not expected to work with code from Expression Web. However you should be able to use that code in the Form HTML box without any problems and to edit it either in the Form HTML box or using cut and paste with Expression Web. (You cna put a require statement in the Form HTML box to use an external file for the Form HTML that you can edit directly with a FTP editor - this has some limitations but is my preferred way of working.)

Bob

PS the PHP Notices in your earlier post all seem to be from mod_hotelmenu, not from ChronoForms, You can probably hide them by setting Error Reporting to System Default in the Site Global Configuration.
Fritz 23 Oct, 2009
Thank you as always for your availability. I went for exclusion for guessing where he might be the problem. I found the javascript conflict in the "mod_hotelsearch" module written from http://joomlahbs.com.
This company provides a component for the online booking that works really bad. For months, I'm trying to get it to work decently, but I still find many bugs and malfunctions. Their support claims that I must buying their product before give me aid. I do not understand this policy.

It 'a shame that you can not create something like that.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger