JustinWen

JustinWen

Contact Me
Online Status
Offline
Date Last Visited
‎06-20-2025 01:30 PM
Level 1
Joined the community 04-12-2020
Rank Icon Level 1
  • solved badge Re: leadCapture/save in Ajax get FAIL status

    Wow, that is bad. I am using JS API on our website, but this time we do not want to load JS or render Marto form HTML if this is possible. So we are looking for any solution if we can achieve this. This should be my last question:Is any solution if changing to serverside? I used REST API from the s...

    image_type
    Discussions
    6374 0 0
  • solved badge Re: leadCapture/save in Ajax get FAIL status

    I just saw this post: https://nation.marketo.com/t5/Product-Discussions/Form-submission-using-POST-menthod/td-p/40834/page/2now I changed save to save2 and added formVid, my ajax returns the response status correctly!thanks for your help!

    image_type
    Discussions
    6403 0 2
  • solved badge Re: leadCapture/save in Ajax get FAIL status

    Thanks SanfordWhiteman,I saw that solution, the idea works for me. But we do not want to render Markto form(even it is hidden) and load Markto script on the front side.I also tried the REST API(https://github.com/Marketo/REST-Sample-Code/blob/master/php/LeadDatabase/Leads/PushLeadToMarketo.php), but...

    image_type
    Discussions
    6429 0 4
  • solved badge Re: leadCapture/save in Ajax get FAIL status

    const data = {'munchkinId': 'xxx-xxx-xxx','formid':'xxxx', // (formid is included)'LeadSource': $.cookie('XYZutm_source'),'Phone': '888-888-8888','Person Source': 'test',}

    image_type
    Discussions
    6495 0 0
  • solved badge Re: leadCapture/save in Ajax get FAIL status

    Sorry for the confusion. it is not server to sever. Basically, when the user submits a form I will send a lead to markto by using this code:HTML: JS:$('.js-lead-capture').click(function (e) {e.preventDefault();const data = {'munchkinId': 'xxx-xxx-xxx','LeadSource': $.cookie('XYZutm_source'),'Phone':...

    image_type
    Discussions
    6496 0 7
  • solved badge leadCapture/save in Ajax get FAIL status

    Hi,I need to send lead from sever to sever, here is the code when the form is submitted:let data= {'munchkinId': 'xxx-xxx-xxx','formid': xxx,'Email': 'xxxx@xxx.com'}$.ajax({type: 'POST',url: '//xxx.oursite.com/index.php/leadCapture/save',data: data,success: function (data) { console.log('run callb...

    image_type
    Discussions
    6503 0 9
Latest Tags
No tags yet

Top Badges Earned

Customize up to 8 badges at the top of your trophy case for all other Community members to see!Customize up to 8 badges at the top of your trophy case for all other Community members to see!
  • Give Back 5 Give Back 5 Earned on 2.08.21 Earned by 1282 people Select to learn more
  • Give Back 3 Give Back 3 Earned on 2.08.21 Earned by 1977 people Select to learn more
  • Give Back 1 Give Back 1 Earned on 2.08.21 Earned by 4365 people Select to learn more
  • Ignite 1 Ignite 1 Earned on 2.08.21 Earned by 4266 people Select to learn more
Public Statistics
Date Registered ‎12-04-2020 01:29 PM
Date Last Visited ‎06-20-2025 01:30 PM
Total Messages Posted 6