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.

× Contact Enhanced is a contact component manager created to replace Joomla! core contacts component and add lots of advantages and new features (see Features ) and it offers many plugins and modules for several different purposes,
Product page | Documentation Page

Text Field Questions

14 years 10 months ago #594 by bbartlett
Hello

I am new to contacts enhanced, I was wondering how I make a text field so only numeric characters can be typed into them, and also the default placement of the text input field is below the title of it, I was wondering how do I place the input field on the same line as the name but immediatly to the right of it. i tried the attributes but could not get it to work as how I want it.


So it would basically look like this

Title or Name of something

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

14 years 10 months ago #595 by douglas
Dear Ben,

I just found out a bug and I'll send you a file to fix.

After you upload the fix to your server add the following code to the attributes field of the Custom field in question:
onkeydown="javascript:var k=event.charCode?event.charCode:event.keyCode; if(k==8 || k==37 ||  k==39 ||  k==46 || (k>=48 && k<=57) || (k>=96 && k<=105) ){return true}else{return false}"
This will allow the main keyboard number as well as the number pad numbers, delete, backspace and arrow keys.

Right now there is no such option to have the fields on the same line as it's labels, however I plan to release a minor version in a couple of weeks and I can add this option.

Regards,

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

14 years 9 months ago #624 by ranja
Hi. I downloaded CE today. It looks good so far!

I also want a "only numeric" text field. Where do I find the fix and how do I make it work? Where shall I place the fix file and in what file do I find the fix code mentioned above?

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

14 years 9 months ago #631 by douglas
Dear Ranja,

I don't like the way Kunena (this forum) manage files, that's why I didn't add the fix at first.

Please unpack and upload file attached to [Joomla]/administrator/components/com_contact_enhanced/admin.contact_enhanced.php

Regards,

This attachment is hidden for guests.
Please log in or register to see it.

This message has an attachment file.
Please log in or register to see it.

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

14 years 8 months ago #869 by ranja
Thank you so much! :kiss:

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