Jump to content

How to add contactform.tpl to a CMS page ?


Recommended Posts

Hi,

 

I'm going crazy with how to add a contact form to a CMS page. It's as simple as that, I just want to add a basic contact form in the CMS page I created "Contact". Does anyone can explain me how to simply to that please? My version is 1.7.6.8

 

Have a great day!

Coline

Share this post


Link to post
Share on other sites
On 12/8/2020 at 3:17 PM, Colinee said:

I'm going crazy with how to add a contact form to a CMS page. It's as simple as that, I just want to add a basic contact form in the CMS page I created "Contact". Does anyone can explain me how to simply to that please? My version is 1.7.6.8

Hi,

Are  you  trying  to  call  the  all  contact  us   features  to  that  CMS  page?

 

Share this post


Link to post
Share on other sites
19 hours ago, haitam.chtiba@gmail. said:

I found this

it's a solution under 1.6 but i could inspire you 

 

That   one  is   doing  the  opposite.

They  add  a  CMS  to  the  contact  us  page  not    the  contact  page  to a  CMS.

Share this post


Link to post
Share on other sites
  • 3 months later...
Posted (edited)

@ndiaga @Colinee- did you manage to get the contact form in a new page? My requirement is not the same but related to contactform.

I just wish to make the dropdown for Order Reference as mandatory.

Any idea if this is possible?

Edited by finaweb (see edit history)

Share this post


Link to post
Share on other sites
1 hour ago, finaweb said:

I just wish to make the dropdown for Order Reference as mandatory.

Any idea if this is possible?

Hi,

You can  do  it  the  form.

Use  HTML5  for  validations  using  the  select  value  as  required.

Share this post


Link to post
Share on other sites

Dear @ndiaga, thank you for the quick response. really appreciate it!!! I realise that adding an attribute 'required' in the <select> tag can help achieve it.

But I understand that this page is created using contactform.php and contactform.tpl 

However, I cannot figure out how and where the changes must be made.

The 2 files are available under
1. modules >> contact form >> templates >> widgets

as well as under

2. themes>> modules>> contact form >> templates >> widgets

 

Where do we add the attribute? can i also add a message if someone does not select the dropdown value? or the validation works on its own?

Share this post


Link to post
Share on other sites
On 3/12/2021 at 2:34 PM, finaweb said:

2. themes>> modules>> contact form >> templates >> widgetsWhere do we add the attribute? can i also add a message if someone does not select the dropdown value? or the validation works on its own?

Hi,

The  one  inside  the  theme  will take  effect .

  • Like 1

Share this post


Link to post
Share on other sites
  • 2 weeks later...
Posted (edited)

@ndiagait doesnt, work. I tried to change the file at modules >> contact form >> templates >> widgets

That too didnt work. Even the label does not get changed from 'optional' to 'required'. 

It seems it also requires a change in the contactform.php file. I tried to add the validation in the .php file but that didnt work either.

Do I need to do anything else after modifying the files?? Please help.

Edited by finaweb (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More