Create a form using modx revo. Feedback form on MODX Revo using Formit with an unusual captcha. Create a chunk sentEmailTpl
06-08-2014 22:30:00 3886 Comments ollserg & MaxWeb for you
ABOUT We very quickly create a feedback form on a website running CMF MODX revo using the FormIt package. I will not describe the process of installing packages on MODX revo in detail in this post due to its simplicity and the large amount of material on this topic on the Internet. Let me just remind you of the sequence of actions: <Система> - <Управление пакетами> - <Загрузить дополнения> - <Поиск>(enter - FormIt)
N press<Загрузить>and then<Установить> D Next, let's create a new chunk and call it
WITH create a chunk sendEmailTpl It describes what information to send by email and insert the code there:
From:
Telephone:
Message:
Here: - sender's name - sender's phone number - sender's email - a message written by the sender on the website
D Next, we will create a page with a message about successful submission and thanks for the fact that the user sent a message through the feedback form. For example:
Thank you for sending your letter! Your letter has been sent successfully. Our specialist will answer you as soon as possible.
N and set up a redirect for this page by its ID.
Not we forget to change the value of the &redirectTo=`178` parameter in the place where the FormIt snippet is called (in the chunk code
answer ollserg replied on Fri, 17/04/2015 - 11:07
THIS FEEDBACK FORM CODE CANNOT WORK! This is not an adaptation! You have removed all functionality! Re-read the article carefully and you will understand. Here I have described everything in detail, but if it still doesn’t work out, you can contact us through the “order” form on this site.
answer Denis replied on Mon, 20/04/2015 - 17:56
FORMIT POP-UP WINDOW Thank you! figured it out! Do you have a lesson on how to make it so that when you click the “send” button, a message about successful sending appears in a pop-up window, and not on a new page?
answer ollserg replied on Thu, 23/04/2015 - 14:56
MODAL WINDOW Use it as a pop-up on your website. There are many implementation methods, one example:
Open window 1
Here you can place any text, pictures or videos!
Well, the CSS for this code.
answer Alexey replied on Sun, 05/31/2015 - 16:09
MODAL WINDOW needs to be written in the html template, but the value of #win1 is unknown to it? Should I ask it somewhere?
Thank you.
answer Alexey replied on Sun, 31/05/2015 - 16:17
MODAL WINDOW Please clarify, where should the #win1 parameter in the form chunk be written so that in the html template the link understands what exactly needs to be called? Maybe I misunderstood something, but the line
needs to be written in the html template, but the value of win1 is unknown to it? Should I ask it somewhere? I’ve only been familiar with modx for 3 days, please, like everything described above, explain it in a simple way. Thank you.
answer ollserg replied on Mon, 01/06/2015 - 12:28
HTML CODE OF THE MODAL WINDOW
Hello Guest!
answer Alex replied on Tue, 07/07/2015 - 10:18
NO LETTER
Yours worked, the letter arrived.
I changed the fields to those that were needed and, alas, the letter stopped coming.
here is the code
answer ollserg replied on Wed, 08/07/2015 - 13:09
Q!FORMIT? DESCRIBE TEXT AND EMAIL In!FormIt? you need a type description - &validate=`email:email:required,text:required:stripTags`
answer Victor replied on Mon, 19/10/2015 - 14:03
MESSAGE SUBJECT IN THE FORMIT FEEDBACK FORM Good day. I use "&emailSubject=`Letter from the site https://site/" - the letter is not sent, the form returns to the state where there is an error in the field. . It is clear that it does not understand the Cyrillic encoding, but where to look? Please tell me what it could be. cause. Thank you.
answer ollserg replied on Tue, 20/10/2015 - 22:47
APACHE AND PHP VERSIONS The first thing I think you should pay attention to in your case is the versions of Apache and PHP on your server.
answer AlexP replied on Thu, 29/10/2015 - 14:15
PLACEHOLDER The placeholder is trimmed.. I wanted to make “Your name” inside the input and style the css But for some reason the code after value="" placeholder="Your name) is cut" - обрезается!} Thank you
answer ollserg replied on Thu, 29/10/2015 - 20:01
ALL CSS CONNECTED MUST BE CHECKED Trimming the "placeholder" occurs precisely because of the layout
answer Roman replied on Fri, 27/11/2015 - 13:43
FORMIT AND PROBLEMS
There is a big disadvantage to Fornit or its documentation. Here I have a beautiful feedback pop-up window, but it is not created by a separate document, but pops up using jquery! So Formit doesn’t work with it.. And I can’t figure out how to set it up! Maybe you've encountered something similar.
answer ollserg replied on Tue, 01/12/2015 - 23:23
AJAXFORM USE FOR POPUP FEEDBACK FormIt does not know how to create ajax out of the box... To it, i.e. FormIt needs to be written as an add-on... or AjaxForm used, which will be the best solution for popup feedback.
answer andreev888 replied on Sat, 05/12/2015 - 22:26
SOMETHING IS NOT OKAY People, tell me, the instructions seem to be the most accessible of all that I have seen, I did everything according to the instructions, but I don’t see the form on the site at all... neither a hook, nor a comma... It just doesn’t appear... Where can I look?
answer ollserg replied on Sun, 06/12/2015 - 23:37
MODX REVOLUTION - CLEAR CACHE And if in the Menu - Site and Update site (Clear site cache) This is the first thing that comes to mind. Well, everything is simple, re-read the post once or twice and you will succeed!!!
answer Evil replied on Fri, 18/12/2015 - 07:00
ANGER You're tired of copying the same articles! Come up with something of your own or at least change the code in the article!
answer ollserg replied on Fri, 18/12/2015 - 14:28
READERS HAVE ALREADY TRIED TO CHANGE THE CODE OF THIS FORM They had questions related to the inoperability of this code. You can read it in the comments above. Another question is that many (there are no exact statistics) thoughtlessly copy and paste the code of this article onto their websites without even reading it carefully. I deliberately copied the feedback form code from my website and indicated in the article the places in the code that need to be changed to my own. And how many letters from websites were sent to my email until I corrected the address in the code?! There were no hundreds of them, just dozens.
answer svbel replied on Thu, 02/06/2016 - 10:11
ERROR WHEN SENDING MAIL What does the message "An error occurred while trying to send mail. The mail function cannot be started."?
answer ollserg replied on Thu, 02/06/2016 - 10:54
THE MAIL FUNCTION CANNOT BE STARTED. There can be many reasons. Look at the logs, does the mail domain and mail specified in FormIt exist and work normally? Ask a question to your hosting provider's support. In general, there is no clear answer to your question.
answer Denis replied on Wed, 15/06/2016 - 15:53
LETTERS DO NOT ARRIVE IN EMAIL Good afternoon I made a form according to your description, everything works, it moves to the thank you page, but nothing arrives by email. Hosted website. In theory, everything is normal in the code
Tell me, what is the problem? Thank you!
answer ollserg replied on Fri, 17/06/2016 - 12:17
MODX FEEDBACK FORM IS 100% CORRECT. FOLLOW INSTRUCTIONS. Please read the article carefully. Pay attention to the chunk