1

All of my landing pages are built using the Classic Editor, Code View. I'm currently sending form captured data via AJAX to another cloud page that processes the data and returns a response.

I'd like to begin taking advantage of the out of the box reporting for Smart Capture forms - but as it stands, my forms don't count as Smart Capture forms.

How would one modify the form to get the system to read the submission as a Smart Capture form submission? I assume it's a matter of adding hidden field data and posting the data to a specific URL - but I can't find any documentation of this.

Thanks!

1 Answer 1

1

I have tried this many times and I have finally figured out how to use the smart capture form in a classic Editor - code view page. Below are the sequence of steps that I did.

  1. Build a cloud page using content builder and use the smart capture form and build whatever feature is required. Save and publish the form. Make sure it is working.
  2. If you go to code view tab on the cloud page in step1, you will get the master HTML code for the page. Copy that in a notepad.
  3. The Smart Capture block itself has its own HTML code for the block. click on the block and copy that code. In step 2, in your notepad code, you will see a div block with attribute data-type="slot" and data-key="col1". Replace this div block with the smart capture HTML code.
  4. Now the smart capture HTML block itself contains a div block with attribute data-type="slot". You need to replace this block with all the smart capture input elements code. When you click on the smart capture form in step 1 and then click on the input element, you will get the HTML code for the element. Copy that code for each element and replace the div block in your notepad
  5. Open the published cloud page URL in step 1 in a browser. Get the HTML code from the browser. Compare this HTML code with the HTML code you have in the notepad. You will see some javascript code is missing and the closing form tab missing. Copy all the missing code to your notepad version.
  6. Now you should have the final version of the HTML code in your notepad with all the smart capture code. Create a cloud page using classic editor, code view option and copy the entire HTML code from your notepad. Save and publish and this should work.

I understand this is a lot of work but once you do it, it will become very easy.

I have done this and it's perfectly working for me. Good luck!

1
  • Do you mind sharing a sample code for the full html that has the smart capture form inside it?
    – compski
    Commented Jan 11, 2019 at 8:14

You must log in to answer this question.