How to customize Joomla default contact form
It is surprising to me that there are actually not much solution on this problem when I am searching over the Internet recently. When using Joomla, you may want to customize some fields in the Joomla default contact form but not to the extent of installing another contact form plugin. For example, you may want to have the form’s subject field to pre-load the text, ‘Customer Enquirers’ when the page was loaded.
I will illustrate how you can do it in this post.
Actually there is only one thing you need to know to solve this problem – identify which file to amend. The file that you need to change is located at: components/com_contact/views/contact/tmpl/default_form.php
Just change the codes in there depending on what you want and upload it to the server for it to be effective. You should be familiar with HTML and PHP (optional) for you to change it with ease.
This is exactly what I did (I came across your post later on).
Aleksey , ok i ve customized the default_form.php, it was easy :)) my problem is that, when i click “send” the form , the customized new fields arent send with the default fields to the email address receiver! I mean that the only fields that joomla sends to email are the old ones, but the new i ve made arent going anywhere! how can i drug to my mail receiver all the fields from the form, and not only “name, email, subject, text” ??? can you help me?
thank you
thank you.. i was searching for a solution…
This is not working for Joomla version Joomla_1.5.20. Several times I have changed the “default_form.php” file under “component/com_contact/views/tmpl/” folder, but couldn’t see any changes. I’m screwed up several days with this problem. Please help me.
you can customise the look of the contact form by adjusting the CSS in the template. The following will add some space between the input boxes:
textarea#contact_text{
margin-bottom: 10px
}
input#contact_subject{
margin-bottom: 10px
}
input#contact_email{
margin-bottom: 10px
}
input#contact_name{
margin-bottom: 10px
}
This is exactly what i was after.. tnx
thanks this is very usefull, l will try shortly.
THis is great…thanks!!!
i need help i want to add three contact fields on every page of my website which is built on joomla how can this be done help would be appreciated. thanks
I want to change the font color from black to white of this contact form because my background color is black.
I edit this file
components/com_contact/views/contact/tmpl/default_form.php
and add
after and before
but nothing happens..
Please kindly advice, what went wrong, and how am i suppose to change it?
FYI I’m newbie
thanks !
i like to know how to modify this php so the mail can be send only to the predefinited addres.
Just a advice!
when you insert new fields, you will need to add these fields at the database mysql!