Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] is it possible to replace the form after submitting ?

Viewing 15 replies - 1 through 15 (of 18 total)
  • Would love to know that too!

    hi… i made this happen in my site…
    send me an email and i’ll send you my code…

    hi, is it possible to edit after submitting form for just one contact form on webpage trough css?

    I am new to this and i don’t know how to email you directly. I clicked onto your name and it only gave me your thread posts and recent replies.

    i am interested in that code you have!

    Please and thank you!


    you can download plugin from here and see code.

    AnteJ. what they want is that form to disappear after submitting with a thank you massege…. i made this happen , you can see it here in this trial website i’m building this days:

    you can fill in the fields and a thank you massage will replace the form

    i uploaded the files in my plugin here:

    and here is the code that goes inside the contact form admin pannel (sorry it’s all in hebrew)

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thank you so much!

    How do i change it to English?

    well… just install the plugin… if you want my form content you can take if from here:

    the name of the form is “BIG”:
    [contact-form-7 id=”195″ title=”BIG”]

    i guess this is all you need

    So i ended up copying fromt but you’re right, its in hebrew.

    How can i change the autoreply to english? i somehow customized it the way i want it but its in hebrew.

    The code for the form that i got is:
    [contact-form-7 id=”86″ title=”Untitled”]

    Many Thanks!

    Hi, thank you for update. Please can you tell me what files are changed in plugin?

    in the file “scripts.js” on line 45 i put:

    " $('div.wpcf7').parent().html("<div class=\"form_success\"><hr class=\"special_tag\" noshade=\"noshade\" /><div>thank you!</div>i will contact you soon.<hr class=\"special_tag\" noshade=\"noshade\" /></div>");"

    Thank you, very helpfull.

    I am still very confused.

    1. Where do i find the script in the contact form 7 folder?
    2. What do i put in order to make it to English?

    I have been trying very hard to change it around but for some reason, its not working properly.

    Please kindly help!

    hi mate… there is a scripts.js file in the main folder of the plugin…
    on line 44 you can find this code:

    if (1 == data.mailSent) {

    replace it with:

    if (1 == data.mailSent) {
    						$('div.wpcf7').parent().html("<div class=\"form_success\"><hr class=\"special_tag\" noshade=\"noshade\" /><div></div><hr class=\"special_tag\" noshade=\"noshade\" /></div>");

    and then in the you can see that this way the code is looking for a class called “form_success” and “special_tag”…
    so you need some CSS for this classes… go to your theme style.css and add this code:

    /* form success message */
    .form_success {
    	direction: rtl;
    	text-align: right;
    	padding: 8px 0;
    	font-weight: bold;
    	color: #fff;
    	position: relative;
    	top: 99px;
    	font-size: 14px;
    	line-height: 18px;
    .form_success div {
    	color: #000;
    	background: url(img/more/thank_you.png) left top no-repeat transparent;
    	height: 34px;
    	margin: 10px 0 2px 0;
    .form_success .special_tag {
    	background-image: url(img/more/dotting2.gif);

    i added the “special_tag” but you don’t need it..

    you can change this code if you wish….

    hope this help people, sorry for my bad english

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘[Plugin: Contact Form 7] is it possible to replace the form after submitting ?’ is closed to new replies.