-
AuthorPosts
-
December 12, 2017 at 2:03 pm #1080686
I have added a new field in the contact form but the new field format is white and not matching the other fields as in name, subject, email and message. can you tell me how to make the format and also how to arrange the order of this new field above the message field? Thanks
- This topic was modified 6 years, 11 months ago by vodanile.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
December 13, 2017 at 3:22 am #1080787Hi
If you added a new field it does not have the style, can u add it in contact form and share the URL here,
the current contact page does not have any new fields on your site.
Also, change the order of the fields you have to do it from the same file where you added the code.Regards
December 13, 2017 at 10:07 am #1080915Can you please check the link now http://www.vodanile.com/contact
Thanks
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
December 14, 2017 at 1:41 am #1081027Hi
You have to define the new fields in the template folder /com_contact/contact/default_form.php file
This file is used to show the form and you can also reorder the fields from it.
Define the new field in the same way as other fields to get the template style.Regards
December 14, 2017 at 2:30 pm #1081229I don’t see the location path as you mentioned, could you please help showing the exact location in the JA Company template? Thanks
December 14, 2017 at 2:38 pm #1081231I found this below code, can you help as i don’t see the Promo Code code in the lines below
<div class="contact-form">
<form id="contact-form" action="<?php echo JRoute::_(‘index.php’); ?>" method="post" class="form-validate form-horizontal">form->getLabel(‘contact_name’); ?>
form->getInput(‘contact_name’); ?>form->getLabel(‘contact_subject’); ?>
form->getInput(‘contact_subject’); ?>form->getLabel(‘contact_email’); ?>
form->getInput(‘contact_email’); ?>form->getLabel(‘contact_message’); ?>
form->getInput(‘contact_message’); ?>form->getFieldsets() as $fieldset) : ?>
name != ‘contact’):?>
form->getFieldset($fieldset->name);?>hidden) : ?>input;?>label; ?>
required && $field->type != “Spacer”) : ?>
input;?>params->get(‘show_email_copy’)) { ?>form->getInput(‘contact_email_copy’); ?>
form->getLabel(‘contact_email_copy’); ?><input type="hidden" name="return" value="return_page;?>” />
<input type="hidden" name="id" value="contact->slug; ?>” /></form>
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
December 15, 2017 at 1:49 am #1081326Hi
We have override for the contact form in /com_contact/contact/default_form.php file
Kindly open this file and apply your custom changes to add new fields in this file so you will get the same style.
For example, the contact name field used by this code<div class="control-contact"> <?php echo $this->form->getLabel('contact_name'); ?> <?php echo $this->form->getInput('contact_name'); ?> </div>
I am not sure about the customisation in Joomla, So i suggest you to apply for custom work in this file.
Regards
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by Pankaj Sharma 6 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum