VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
CHECK OUT OUR PAGE ON GOOGLE +
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

Contact page - Add obbligatory line
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Contact page - Add obbligatory line

Contact page - Add obbligatory line 06 Mar 2018 00:54 #10904

Hi guys
how can I edit the contact form?

I'd like to add an obbligatory line as "Telephone number" before "Message"

Thank you for your invaluable help!

Re: Contact page - Add obbligatory line 06 Mar 2018 02:54 #10905

Hi,
You can modify default contact component or use third party extensions to create contact form.

joomfreak

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

Re: Contact page - Add obbligatory line 23 Mar 2018 00:42 #10944

Hi guys
I'd like to chance the default contact component: I can't use a use third party extensions too

I tried to change
Components->Contacts->Contacts->Single contact
Menu Items->contact too but....

Nisba Null Flatline NoWay

Could you give me an advice please? xD

Re: Contact page - Add obbligatory line 23 Mar 2018 03:16 #10946

You can see here to adding fields to Joomla 3.x contact component.

joomfreak

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

Re: Contact page - Add obbligatory line 26 Mar 2018 23:06 #10955

Hi to all

I don't know how but it works without 3- and 4- points
Maybe I'm very luky... or you are all magicians..



I follow stackoverflow site point by point...

1- ok
2- ok
3- ok
4- it doesn't work:

we have
<legend><?php echo $legend; ?></legend>
not
<legend><?php echo JText::_('COM_CONTACT_FORM_LABEL'); ?></legend>

...than...The question probably could be:

____Have I to change the following 3 lines
<?php if (isset($fieldset->label) && ($legend = trim(JText::_($fieldset->label))) !== '') : ?>
<legend><?php echo $legend; ?></legend>
<?php endif; ?>
___in the following 5?
<?php if (isset($fieldset->label) && ($legend = trim(JText::_($fieldset->label))) !== '') : ?>
<legend><?php echo JText::_('COM_CONTACT_FORM_LABEL'); ?></legend>
<dt><?php echo $this->form->getLabel('contact_telephone'); ?></dt>
<dd><?php echo $this->form->getInput('contact_telephone'); ?></dd>
<?php endif; ?>

...let's go ahead...
...Maybe the Joomfreak Force will be with, you young CBasteDesign...

4 bis- it doesn't work:
in
*Joomla Directory > templates > your_template_folder_name > html > com_contact > contact >
we don't have
‘default_form.php’ file
but we have
‘default.php’
and it has no </legend> inside...

...but let's go ahead...
...Maybe the Joomfreak Force...

...after a fairly good fight with
5- and 6- points
...I tryed my contact form
...and it works...


Thank you JoomfreakSupport Jedi
  • Page:
  • 1
Time to create page: 1.06 seconds
Sunday 23 September 2018

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.