• Resolved jhasenklein

    (@jhasenklein)


    Hi,

    I’m using Contact Form 7 to create a simple contact form on my site (milkenknights.com). We are running FlatOn Pro theme on WordPress 4.3.1.

    After I created the form, I went to embed it and found that the shortcode is incomplete. It says:

    [contact-form-7 id=

    I tried to create a second form and the same thing happened. I tried leaving it blank, putting in 1, and putting in 1234 but I am obviously still getting the error:

    [contact-form-7 404 “Not Found”]

    Thanks!
    Jared

    https://www.ads-software.com/plugins/contact-form-7/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Did you give your form a title and saved it before copying the shortcode?

    Something must have gone wrong somewhere

    You may see getting started with CF7??

    Thread Starter jhasenklein

    (@jhasenklein)

    Thanks for your response. I named it “Contact Us” and did save it. I created a second one just to test it and no shortcode there either.

    I followed all of the steps from the link and no luck.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try switching to the default theme (twentyfifteen).

    Where did you paste the code?

    Thread Starter jhasenklein

    (@jhasenklein)

    Hi Takayuki Miyoshi,

    It appears that regardless of what contact form I use (I also tried Best Web Soft and Contact Form Builder) I run into some problem. Those other ones I can’t submit the form.

    I switched the twenty fifteen theme and still ran into the same problem with Contact Form 7 not generating a shortcode and the other plugins not submitting.

    I can’t seem to figure it out because it doesn’t seem like a problem with the plugins or the theme.

    Thoughts anyone?

    Thread Starter jhasenklein

    (@jhasenklein)

    Hi Davmerit,

    I pasted the code into the page builder at milkenknights.com/contact. There’s a different plugin there now though.

    I pasted the code into the page builder at milkenknights.com/contact.

    ??The error could be from the page builder. But I can see your form is now showing at the link provided

    Thread Starter jhasenklein

    (@jhasenklein)

    Hi,

    Whats up there now is a a Google Form. I created a custom script on the spreadsheet that sends a confirmation email to me and then sender. Still not sure why none of the plugins are working…but thanks…

    FYI–here is the Google Script for the notifications:

    /* Send Confirmation Email with Google Forms */

    //TRIGGERS WHEN THERE IS A NEW FORM RESPONSE

    function Initialize() {

    var triggers = ScriptApp.getProjectTriggers();

    for (var i in triggers) {
    ScriptApp.deleteTrigger(triggers[i]);
    }

    ScriptApp.newTrigger(“SendConfirmationMail”)
    .forSpreadsheet(SpreadsheetApp.getActiveSpreadsheet())
    .onFormSubmit()
    .create();

    }

    //BEGINS COMPOSING THE EMAIL

    function SendConfirmationMail(e) {

    try {

    var ss, cc, sendername, subject, columns; //DO NOT CHANGE “CC” TO “BCC” (IT WON’T WORK!)
    var message, value, textbody, sender;

    cc = “[email protected]”; //EMAIL THAT WILL BE CC’D ON THE CONFIRMATION TO THE USER

    // SENDER NAME FOR THE EMAIL
    sendername = “Team 1836: Milken Knights”;

    //SUBJECT FOR THE EMAIL
    subject = “Thanks for contacting Team 1836!”;

    //BODY FOR THE EMAIL
    message = “Thank you for submitting the contact form! A team member has recieved your information and will get back to you soon.

    In the mean time, stay up to date with us:
    Website: milkenknights.com
    Facebook: fb.com/TheMilkenKnights
    Twitter: @milkenknights

    Thanks!
    Team 1836

    Here’s the data submitted on the form:

    “;

    ss = SpreadsheetApp.getActiveSheet();
    columns = ss.getRange(1, 1, 1, ss.getLastColumn()).getValues()[0];

    //SUBMITTED EMAIL ADDRESS
    sender = e.namedValues[“Email Address”].toString();

    // DOES NOT INCLUDE BLANK VALUES
    for (var keys in columns) {
    var key = columns[keys];
    var val = e.namedValues[key] ? e.namedValues[key].toString() : “”;
    if (val !== “”) {
    message += key + ‘ :: ‘ + val + “
    “;
    }
    }
    //USE
    FOR LINE BREAKS. GOOGLE WILL CONVERT TO \N
    textbody = message.replace(“
    “, “\n”);

    //SEND EMAIL
    GmailApp.sendEmail(sender, subject, textbody, {
    cc: cc,
    name: sendername,
    htmlBody: message
    });

    } catch (e) {
    Logger.log(e.toString());
    }

    }

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘No shortcode ID’ is closed to new replies.