• Resolved gantsta

    (@gantsta)


    I have a strange issue when using this plugin. When you submit a completed form, the email comes through but the CF7 submission process seems to not complete. What I mean by this is that the ajax-loader icon keeps spinning and the success (or failure) message doesn’t show up. Looking at the source code, I can see that as soon as the form is submitted the following div is added immediately below the closing </form> tag.
    <div class="ajax-error">JSON.parse: unexpected character at line 1 column 1 of the JSON data</div>

    I have disabled all plugins except for CF7 (v4.5) and CF7 Conditional Fields (v0.1.7) and activated the Twentysixteen theme (v1.0) but still the issue persists. I’m using WordPress version 4.4

    The form is located here: https://shires.fpldev2.co.uk/request-a-valuation/

    The form code is as follows:

    
    <h1>Request your FREE, no obligation property valuation</h1>
    <div class="form-group">
    <label for="full-name" class="has-placeholder">Name (required)</label>
    [text* full-name placeholder "Full name"]
    </div>
    <div class="form-group">
    <label for="method">Preferred contact method</label>
    [select* method "Email" "Telephone"]
    </div>
    [group email-fields]
    <div class="form-group">
    <label for="email-address" class="has-placeholder">Email address (required)</label>
    [email email-address placeholder "Email address"]
    </div>
    [/group]
    [group telephone-fields]
    <div class="form-group">
    <label for="tel-number" class="has-placeholder">Telephone (required)</label>
    [tel tel-number placeholder "Telephone"]
    </div>
    [/group]
    <div class="form-group">
    [submit "Submit"]
    </div>
    <p class="small"><sup>*</sup> We will NOT use this information for any marketing purpose. It will only be used to contact you about your property valuation.</p>
    

    Any help with this gratefully received.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jules Colle

    (@jules-colle)

    @gantsta sorry for the late reply. If you still have the problem I’ll gladly look into it.

    gourav12

    (@gourav12)

    I am trying to post request in contact form 7 in wordpress?

    I was trying look like below code. but not getting any success.
    on_sent_ok: “$.ajax({ type: “POST”, url: “https://13.55.17.71:8080/MarketingSolution-0.1/leads/saveWithJson”,success: 1, function(data){}})”

    While i m also trying this : on_sent_ok: “$.ajax({ type: “POST”, url: “https://13.55.17.71:8080/MarketingSolution-0.1/leads/saveWithJson”,data: jsonData,success: function(){}})”

    Its given error referenceerror jsondata is not defined

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘No responses from CF7 on form submit – JSON parse error’ is closed to new replies.