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

Subject line error into the contact us page
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Subject line error into the contact us page

Subject line error into the contact us page 09 Aug 2015 17:13 #7203

Hi,

First, this template is really cool, easy to configure and to play with. The only issue that I have it about the "Contact us page" ?!?!.

Everytime someone try to send an email, they receive a error message saying the the "Subject" line is requiered ?? But I do not have that field on my page ??

How do I fixe this ?

I tried to add those lines into to the jf_calla-exteriorshtmlcom_contactcontactdefault_form.php

<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>

But It is not working !!

Can someone help me on this

Thanks in advance
Last Edit: 09 Aug 2015 17:15 by jacstep1. Reason: adding backslash

  • Posts:3
  • jacstep1
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Subject line error into the contact us page 10 Aug 2015 03:38 #7206

Please check file components/com_contact/models/forms/contact.xml, so if has field
<field name="contact_subject" />, it is working when you add those lines into to the templates/jf_calla-exteriors/html/com_contact/contact/default_form.php:
 
<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>
 


joomfreak

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

Re: Subject line error into the contact us page 10 Aug 2015 04:06 #7207

Thanks for this fast reply, I really appreciated...

Here what I got int my contact.xml...

<field name="contact_subject"
type="text"
id="contact-emailmsg"
size="60"
description="COM_CONTACT_CONTACT_MESSAGE_SUBJECT_DESC"
label="COM_CONTACT_CONTACT_MESSAGE_SUBJECT_LABEL"
filter="string"
validate="contactemailsubject"
required="true"
/>

It still not working... again big thanks for your help....

  • Posts:3
  • jacstep1
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Subject line error into the contact us page 10 Aug 2015 04:14 #7208

One last thing..

I put the value of this line "required" to the value " False" and we can now send message, but whitout a subject line...

<field name="contact_subject"
type="text"
id="contact-emailmsg"
size="60"
description="COM_CONTACT_CONTACT_MESSAGE_SUBJECT_DESC"
label="COM_CONTACT_CONTACT_MESSAGE_SUBJECT_LABEL"
filter="string"
required="False"
/>

  • Posts:3
  • jacstep1
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.99 seconds
Tuesday 21 May 2019

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.