test
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • vodanile Friend
    #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 7 years ago by  vodanile.
    Pankaj Sharma Moderator
    #1080787

    Hi
    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

    vodanile Friend
    #1080915

    Can you please check the link now http://www.vodanile.com/contact

    Thanks

    Pankaj Sharma Moderator
    #1081027

    Hi
    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

    vodanile Friend
    #1081229

    I don’t see the location path as you mentioned, could you please help showing the exact location in the JA Company template? Thanks

    vodanile Friend
    #1081231

    I 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;?>

    </form>
    Pankaj Sharma Moderator
    #1081326

    Hi
    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

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 6 replies, has 2 voices, and was last updated by  Pankaj Sharma 7 years ago.

We moved to new unified forum. Please post all new support queries in our New Forum