Forums

Coding shown after the submit button

judyksp 19 Jun, 2009
I am not sure what has happened.

I have not worked on my site for a month and today, I wanted to make some modifications. But before that, I tested my contact form to make sure it is still working. However, when I click on the Contact tab, I see the form but below the form (after the submit button), I see all the coding.

What is wrong?

My site is <!-- w --><a class="postlink" href="http://www.jfkenterprises.net">www.jfkenterprises.net</a><!-- w -->

Below is the coding I get on my page.

.'; eval("if(field.getProperty('title')){fMessage_val_validate_email = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name')+".add( Validate.Email, { failureMessage: fMessage_val_validate_email } );"); } if(field.hasClass('validate-url')){ var fMessage_val_validate_validate_url = 'Please enter a valid URL.'; eval("if(field.getProperty('title')){fMessage_val_validate_validate_url = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name')+".add( Validate.Format, { pattern: /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i, failureMessage: fMessage_val_validate_validate_url } );"); } if(field.hasClass('validate-date-au')){ var fMessage_val_validate_date_au = 'Please use this date format: dd/mm/yyyy. For example 17/03/2006 for the 17th of March, 2006.'; eval("if(field.getProperty('title')){fMessage_val_validate_date_au = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name')+".add( Validate.Format, { pattern: /(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d/, failureMessage: fMessage_val_validate_date_au } );"); } if(field.hasClass('validate-currency-dollar')){ var fMessage_val_validate_currency_dollar = 'Please enter a valid $ amount. For example $100.00 .'; eval("if(field.getProperty('title')){fMessage_val_validate_currency_dollar = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name')+".add( Validate.Format, { pattern: /^\$?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/, failureMessage: fMessage_val_validate_currency_dollar } );"); } Validate.One_Required = function(elm, paramsObj){ var paramsObj = paramsObj || {}; var message = paramsObj.failureMessage || "Must Choose one"; var ready = false; var elm = paramsObj.elm; var p = elm.parentNode; var options = p.getElementsByTagName('INPUT'); for(i=0; i 1)field.options[0].selected = true; eval("if(field.getProperty('title')){fMessage_val_validate_one_required = field.getProperty('title');}") eval("var cfvalidate_"+field.getProperty('name').replace('[]', '')+" = new LiveValidation(field, { validMessage: ' ', insertAfterWhatNode : field.parentNode });"); eval("cfvalidate_"+field.getProperty('name').replace('[]', '')+".add( Validate.One_Required, { elm : field, failureMessage: fMessage_val_validate_one_required } );"); } } }); $ES('select', $('ChronoContact_contact_form')).each(function(field){ eval("var cfvalidate_"+field.getProperty('name').replace('[]', '')+" = new LiveValidation(field, { validMessage: ' ' });"); if(field.hasClass('validate-selection')){ var fMessage_val_validate_selection = 'Please make a selection'; if(field.size > 1)field.options[0].selected = true; eval("if(field.getProperty('title')){fMessage_val_validate_selection = field.getProperty('title');}"); eval("cfvalidate_"+field.getProperty('name').replace('[]', '')+".add( Validate.Presence, { failureMessage: fMessage_val_validate_selection } );"); } }); $ES('textarea', $('ChronoContact_contact_form')).each(function(field){ eval("var cfvalidate_"+field.getProperty('name').replace('[]', '')+" = new LiveValidation(field, { validMessage: ' ' });"); if(field.hasClass('required')){ var fMessage_val_required = 'This field is required'; eval("if(field.getProperty('title')){fMessage_val_required = field.getProperty('title');}") eval("cfvalidate_"+field.getProperty('name').replace('[]', '')+".add( Validate.Presence, { failureMessage: fMessage_val_required } );"); } }); });
Joomla Professional Work
GreyHead 19 Jun, 2009
Hi judyksp,

You have the Email Cloaking plugin/Mambot turned on and it is trying to cloak the email address in the Validation error message. (I think this has been fixed in the more recent ChronoForms releases.)

To check, turn the Email Cloaking Plugin off; if you need the plugin, change the order of the ChronoForms and Email Cloaking plugin in the Plugin Manager.

Bob
judyksp 19 Jun, 2009
Hi Bob

Thanks a lot. I changed the order and it is now working properly.

Regards

Judy
This topic is locked and no more replies can be posted.