- This topic has 21 replies, 2 voices, and was last updated 5 years, 4 months ago by
Support. This post has been viewed 1675 times
-
AuthorPosts
-
March 3, 2021 at 10:57 am #10036608
odessitka1961
ParticipantI need your help with success alert when message was send
Template Version: contact formMarch 3, 2021 at 11:20 pm #10036617Support
KeymasterHello,
Did you receive the messages even without a success message ?
If yes, first make sure you have the script
js/views/view.contact.jsincluded on footer of page:

<script src="js/views/view.contact.js"></script>
Make sure you have the variable
$debugatphp/contact-form.phpdefined as:$debug = 0;
Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
March 4, 2021 at 12:57 am #10036624odessitka1961
ParticipantHi. Thanks for replying. Yes, I receive the message anyway. But my problem is different. I don’t need <script src=”js/views/view.contact.js”></script>. I am quite happy with “view.home.js”. My problem is that after I submit the message it’s take me to a blank page with alert {“response”:”success”}. I need the message would display on the same page like on page “contact-us-advanced.php”. Success with green background Error with red background. Is it posible?
Or if use “view.contact.js”, how I can link it to “Thanks page”?
March 4, 2021 at 6:03 am #10036630Support
KeymasterHello,
The purpose of
view.contact.jsis exactly what you need, that’s show a success message without reload the page with blank “success”.Please try that and let us know if you need further assistance.
Kind Regards,
Rodrigo.
If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
March 4, 2021 at 10:30 pm #10036639odessitka1961
ParticipantHi.
With “view.contact.js” after I send message from advanced contact form the alert is on the same page with green background saying that message was sent. But, if I send message using contact form in footer It takes me on “Page 404″, saying:” Not Found
The requested URL was not found on this server.Apache/2.4.46 (Win64) PHP/7.3.21 Server at mytailoredwebsite Port 8081″
As a server I am using localhost “wamp64”. My Website isn’t life yet (I am preparing to do it within the next week or so). I am getting messages on my email address from the website in both cases (from advance-form and just normal contact form).
March 5, 2021 at 12:32 am #10036651Support
KeymasterHello,
In this case please share with us all code of the follow pages/files:
– The contact form page
– php/contact-form.php (probably the footer contact form is running truogh this file)
– js/views/view.contact.jsWould be great if you can publish the website in your server with a http://www.yourdoman.com/test and send for us, so we can inspect the code and discover what’s happening. Even so please share the above pages/files code.
You can send these codes with a server like https://pastebin.com, you will create a link with the code and share the link with us.
Kind Regards,
Rodrigo.
If you are satisfied with Porto HTML and our support, please leave your comment and rating on ThemeForest downloads page. That helps us a lot: https://themeforest.net/downloads
March 5, 2021 at 12:48 am #10036654odessitka1961
ParticipantPlease let me know if you received my reply with codes.
March 5, 2021 at 1:04 am #10036656odessitka1961
ParticipantYou are asking me to publish my website with http://www.yourdoman.com/test, but my website isn’t ready to be published yet. And I am setting up a different server.
I don’t understand what do you mean
“Would be great if you can publish the website in your server with a http://www.yourdoman.com/test and send for us, so we can inspect the code and discover what’s happening. Even so please share the above pages/files code.”
March 5, 2021 at 1:09 am #10036658odessitka1961
ParticipantI can see that you are not getting my code for the files you were asking for. And I don’t know how I can send it to you.
March 5, 2021 at 1:17 am #10036659odessitka1961
ParticipantI Think I understood.
Here is my code for contact us php page
https://pastebin.com/D8mWLkyi
March 5, 2021 at 1:23 am #10036660odessitka1961
ParticipantMarch 5, 2021 at 1:25 am #10036661odessitka1961
ParticipantAnd finally here is code for js/views/view.contact.js
https://pastebin.com/XrAV3ALc
March 5, 2021 at 6:36 am #10036666Support
KeymasterThis reply has been marked as private.March 5, 2021 at 6:50 am #10036668odessitka1961
ParticipantOk. Try this one:
https://pastebin.com/k6FxivN1
This is for contact-form.php
March 5, 2021 at 6:52 am #10036669odessitka1961
ParticipantAnd this one for “view.contactjs:
https://pastebin.com/Qi71rbbH
-
AuthorPosts
This topic is marked as "RESOLVED" and can not rceive new replies.