VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

[solved] contact form requiered field: subject
(1 viewing) (1) Guest

TOPIC: [solved] contact form requiered field: subject

Re: [solved] contact form requiered field: subject 31 May 2017 02:26 #10288

Can you please send me your website url?

joomfreak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: [solved] contact form requiered field: subject 31 May 2017 09:47 #10292

yes of course,

www.nauticaenros.it/it/contattaci

thank you

  • Posts:7
  • Monrz
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: [solved] contact form requiered field: subject 01 Jun 2017 02:28 #10295

You can edit file templates/jf_calla-exteriors/css/template.css, add:
 
#contact-form label {
margin: 30px 0 0;
}
#contact-form input[type=text], #contact-form input[type=email], #contact-form textarea {
max-width: 432px;
}
 


joomfreak
Last Edit: 02 Jun 2017 02:29 by isupport.

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: [solved] contact form requiered field: subject 01 Jun 2017 08:39 #10298

Hi, thank you for the answer, i'm really noob i can't fix it in this way because i have no idea where i have to add this code, i'm in templates/jf_calla-exteriors/html/com_contact/contact/default_form.php

and everywhere i add this code this is the effect (of course if i add the code in the right label i can see it in the right label)

this is the code i have now without the code you wrote before


defined('_JEXEC') or die;
JHtml::_('behavior.keepalive');
JHtml::_('behavior.formvalidation');
JHtml::_('behavior.tooltip');
if (isset($this->error)) : ?>
<div class="contact-error">
<?php echo $this->error; ?>
</div>
<?php endif; ?>
 
 
<div class="contact-form">
<form id="contact-form" action="<?php echo JRoute::_('index.php'); ?>" method="post" class="form-validate form-horizontal">
<div class="form-left">
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('contact_name'); ?></div>
<div class="controls"><?php echo $this->form->getInput('contact_name'); ?></div>
</div>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('contact_email'); ?></div>
<div class="controls"><?php echo $this->form->getInput('contact_email'); ?></div>
</div>
 
 
</div>
<div class="form-right">
 
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('contact_subject'); ?></div>
<div class="controls"><?php echo $this->form->getInput('contact_subject'); ?></div>
 
</div>
 
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('contact_message'); ?></div>
<div class="controls"><?php echo $this->form->getInput('contact_message'); ?></div>
</div>
 
 
</div>
<div class="clr"></div>
 
<?php if ($this->params->get('show_email_copy')) { ?>
<div class="control-group">
<div class="control-label"><?php echo $this->form->getLabel('contact_email_copy'); ?></div>
<div class="controls"><?php echo $this->form->getInput('contact_email_copy'); ?></div>
</div>
<?php } ?>
<?php //Dynamically load any additional fields from plugins. ?>
<?php foreach ($this->form->getFieldsets() as $fieldset) : ?>
<?php if ($fieldset->name != 'contact'):?>
<?php $fields = $this->form->getFieldset($fieldset->name);?>
<?php foreach ($fields as $field) : ?>
<div class="control-group">
<?php if ($field->hidden) : ?>
<div class="controls">
<?php echo $field->input;?>
</div>
<?php else:?>
<div class="control-label">
<?php echo $field->label; ?>
<?php if (!$field->required && $field->type != "Spacer") : ?>
<span class="optional"><?php echo JText::_('COM_CONTACT_OPTIONAL');?></span>
<?php endif; ?>
</div>
<div class="controls"><?php echo $field->input;?></div>
<?php endif;?>
</div>
<?php endforeach;?>
<?php endif ?>
<?php endforeach;?>
<div class="form-actions"><button class="btn btn-primary validate" type="submit"><?php echo JText::_('COM_CONTACT_CONTACT_SEND'); ?></button>
<input type="hidden" name="option" value="com_contact" />
<input type="hidden" name="task" value="contact.submit" />
<input type="hidden" name="return" value="<?php echo $this->return_page;?>" />
<input type="hidden" name="id" value="<?php echo $this->contact->slug; ?>" />
<?php echo JHtml::_('form.token'); ?>
</div>
 
</form>
</div>
 



where i have to add that code?
[attachment:1]C:\fakepath\Immagine.jpg[/attachment]

thank you very much

  • Posts:7
  • Monrz
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: [solved] contact form requiered field: subject 02 Jun 2017 02:31 #10303

Above css code, you add to file templates/jf_calla-exteriors/css/template.css

joomfreak

  • Posts:2940
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: [solved] contact form requiered field: subject 03 Jun 2017 08:50 #10305

Sorry i understood the wrong file, now i added the code in the correct file but nothing is changed again... some other solution?

  • Posts:7
  • Monrz
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
Time to create page: 1.01 seconds
Thursday 02 May 2024

joomfreak is not affiliated with or endorsed 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.