Your Time:
Our Time:
← Back to discussions

Contact Form Widget's success message as 'undefined'

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 4 replies, 3 voices, and was last updated 12 years, 9 months ago by JackMagic.

  • 2013-12-13 at 5:17 am
    Support Expired
    #1473
    JackMagic
    Participant
    • Topics: 11
    • Replies: 26
    • Total posts: 37
    • Post count: 36

    Hi,

    The I’m using contact form widgets in my sidebars and footer and when they are submitted they show a success message of ‘undefined’. Now all the fields are correctly entered in, ie Title, Email, Success Message, yet they still all appear as ‘undefined’.

    I’m looking through the contactform.php in the widgets folder and I can’t seem to place my finger on the problem. Could you please elaborate on this matter for me and help me solve it asap.

    JackMagic

    2013-12-13 at 8:29 pm
    #1487
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    We are removing that widget and will be integrating the contact form 7 plugin as it gives you full control over the fields to you. Please install contact form 7 wordpress plugin instead.

    Regards
    Maqk

    2013-12-14 at 3:38 am
    Support Expired
    #1494
    JackMagic
    Participant
    • Topics: 11
    • Replies: 26
    • Total posts: 37
    • Post count: 36

    Contact Form 7 does not copy over the same css styling. Your contact forms work just fine for me, I don’t need to add any fields, I just would like to know how to correct the ‘undefined’ success message that appears. Even if I have to hard code an overall success message, its all I need.

    Thank you,
    JackMagic

    2013-12-16 at 7:27 pm
    #1526
    Wajid Khan
    Keymaster
    • Topics: 5
    • Replies: 1543
    • Total posts: 1548
    • Post count: 1876

    This can done in JS folder atp_form.js.

    js/atp_form.js

    Find this:

    var contact_success = jQuery('#contact_success'+$id+'').val();

    Replace this

    var contact_success = jQuery('#contact_'+$id+'success').val();

    Is their anything else i can assist you with?

    If you have not yet given ratings to the theme, kindly please give to the theme by going to your themeforest account downloads section and beside the Download button of the theme you can find the stars to click on for ratings 🙂

    Regards,
    Wajid Khan

    • This reply was modified 12 years, 9 months ago by Wajid Khan.
    2013-12-17 at 4:25 am
    Support Expired
    #1544
    JackMagic
    Participant
    • Topics: 11
    • Replies: 26
    • Total posts: 37
    • Post count: 36

    Thanks, worked like a charm!

You must be logged in to reply to this topic.