Support Forum

Every time that you post a problem, PLEASE add the Joomla and the extension's versions and revisions (for example: Joomla 3.3.6, Contact Enhanced 3.3.5), PHP version and Server's Operating System. If you only manage only one site it is easier if you edit your profile and just add that information to your signature. Don't forget to add a detailed description of the problem. If possible, write down all steps to simulate the problem.

Before submitting a new post, PLEASE make sure you are running the latest version, test in different browsers (IE, FF, Chrome,..) and clear Joomla and browser's cache after every change you make.

Also, most questions are already answered in our FAQ and in iFAQ and Contact Enhanced documentation pages.

More than 20 custom fields possible?

10 years 10 months ago #14625 by reneweik
Hi there!

Where can 1 change the limitation of the number of custom-fields?
Now, there are 20, but I need about 30...

Is that possible?

THANK YOU!

Please Log in or Create an account to join the conversation.

10 years 10 months ago #14628 by douglas
Dear reneweik,

It is possible, however you'd need to hack the following files:

File: /modules/mod_ajaxcontact/mod_ajaxcontact.xml
Add the following block 10 times, just change the number 20 for the 21 - 30:
<field name="subtitle-cf20" type="title" label="MOD_AJAXCONTACT_CUSTOM_FIELD_TITLE_20_LABEL"></field>
<field name="cf20" type="customfieldtype" default="" label="MOD_AJAXCONTACT_CUSTOM_FIELD_TYPE_LABEL" description="MOD_AJAXCONTACT_CUSTOM_FIELD_TYPE_DESC"></field>
<field name="cf20-label" type="text" default="" label="MOD_AJAXCONTACT_CUSTOM_FIELD_LABEL_LABEL" description="MOD_AJAXCONTACT_CUSTOM_FIELD_LABEL_DESC"></field>
<field name="cf20-value" type="text" default="" label="MOD_AJAXCONTACT_CUSTOM_FIELD_VALUE_LABEL" description="MOD_AJAXCONTACT_CUSTOM_FIELD_VALUE_DESC"></field>
<field name="cf20-required" type="radio" default="" label="MOD_AJAXCONTACT_CUSTOM_FIELD_REQUIRED_LABEL" description="MOD_AJAXCONTACT_CUSTOM_FIELD_REQUIRED_DESC">
    <option value="0">JNO</option>
    <option value="1">JYES</option>
</field>


File: /modules/mod_ajaxcontact/tmpl/default.php
Find line:
for($i=1; $i<=20; $i++){
and replace with:
for($i=1; $i<=30; $i++){


However my suggestion is for you to use a more robust extension like Contact Enhanced, which allows you to have unlimited custom fields and provide more custom field types:
idealextensions.com/joomla-ext...omponent-contact-enhanced.html

Best regards,

Please Log in or Create an account to join the conversation.

10 years 10 months ago #14647 by reneweik
Great, thanks Douglas!

Please Log in or Create an account to join the conversation.

10 years 10 months ago - 10 years 10 months ago #14648 by reneweik
Sorry Douglas,

one more question...

The extension up to 30 Fields worked fine!
But where can I adjust the email in order to get all fields in it as well?


Thank you

Edit: Is it possible, that I have to change this in ajax.php as well?

Please Log in or Create an account to join the conversation.

10 years 10 months ago #14649 by douglas
Dear reneweik,

Yes, I forgot that part!

Please open ajax.php, find this code:
for($i=1; $i<=20; $i++){
and replace this this:
for($i=1; $i<=30; $i++){



Best regards,

Please Log in or Create an account to join the conversation.

10 years 10 months ago #14703 by reneweik
Dear Douglas,

I am so sorry, but I have one more question concerning this topic.
The form and averything works fine - thank you!

The problem is the email, i get...
Do you know why the truncation of the lines stop working after line 50.
After this line all field-inputs appear in one line.

Do you know what I mean?

Thanx man!

Please Log in or Create an account to join the conversation.

10 years 10 months ago #14704 by douglas
Dear reneweik,

I'm not sure what you mean. There is no related restriction in Ajax Contact.

It might be an issue related to your email client. Can you test with another client.

Best regards,

Please Log in or Create an account to join the conversation.

10 years 10 months ago #14705 by reneweik
Oh sorry!

You are right. In my Webmail account every field gets a new line... So it must be my email-client... THANK YOU

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Copyright © 2018 IdealExtensions.com. All Rights Reserved.

This site is not affiliated with or endorsed by the Joomla!™ Project. It is not supported or warranted by the Joomla!™ Project or Open Source Matters™. The Joomla!™ logo is used under a limited license granted by Open Source Matters™, the trademark holder in the United States and other countries.
We may collect your IP address and your browser's User Agent string while using our site for security reasons and deriving aggregate information (analytics). This information is retained for a minimum of 1 and a maximum of 24 months.
Feedback