Re: Date stamp for form submissions

Jamie_Barclay
Level 5

Date stamp for form submissions

I have a form that I need to capture the submission date.

I have this as a hidden field but the the date is not pulling into my smart list that includes additional information that I need to capture.  I also need to be able to capture the date that the form was submitted.  What am I doing wrong?

pastedImage_0.png

Thank you.

9 REPLIES 9
Josh_Hill13
Level 10 - Champion Alumni

Re: Date stamp for form submissions

Is that a field? Looks like you just typed "system.date". You need a hidden field like Form Submission Date and code to populate it.

You could also push this in a trigger flow.

Jamie_Barclay
Level 5

Re: Date stamp for form submissions

Hi Josh,

This is a field within the form (Form submission date) based on the system date.

Should it be something different?  I have a form that I have created a smart list for that will reflect those that we deployed to and that submitted the form (I need to be able to identify the date they submitted the form (e.g., Form Submission Date).

Thoughts?

pastedImage_0.png

Dan_Stevens_
Level 10 - Champion Alumni

Re: Date stamp for form submissions

did you try populating with the actual token: {{system.dateTime}}?  Is your custom field "Submission Date" defined as the correct type?

pastedImage_0.png

Brian_Law_MKTO
Marketo Employee

Re: Date stamp for form submissions

Nice Dan!  Jamie, depending on your field type of your hidden field you might need to use the {{system.date}} token vs {{system.dateTime}} token. If your hidden field type is a string it won't matter.

Anonymous
Not applicable

Re: Date stamp for form submissions

Hi there,

I have tried both token types as above on a Marketo form that sits on a non-Marketo landing page and I am not getting the day or day and time populating in my record. It just has the token name in the associated field. Is this because I'm using a non-Marketo landing page?

Thanks

SanfordWhiteman
Level 10 - Community Moderator

Re: Date stamp for form submissions

Yes, it's because you're on a non-Marketo LP. You can do the same in JS:

MktoForms2.whenReady(function(form){

  form.onSubmit(function(form){

    form.addHiddenFields({

      Submission_Date : new Date().toISOString()

    });

  });

});

where Submission_Date is of course the name of the field in your instance.

Anonymous
Not applicable

Re: Date stamp for form submissions

Thanks for the quick response Sanford!

SanfordWhiteman
Level 10 - Community Moderator

Re: Date stamp for form submissions

Sure, please mark my answer above as Correct once you've retested.

Webenza_MT
Level 2

Re: Date stamp for form submissions

In order to capture the date and time your marketo form was filled, you should do below-

1) Create a container/bucket to capture this data

2) Either ask your audience to fill the data (which is ridiculous ) or command your system to fill (which smart marketers do )

Details on above-

1) Bucket/container is the custom field which you will have to create by going into admin panel. Under admin panel, go to field management and then create Custom Field. Define what type of data do you want to capture, which is date & time to be obvious. Give the name to this field. API name is assigned automatically.

2) Once you can created the field, you have to command system to fill the date and time in this field. Now go to the program where you have defined certain steps to be taken post form fill. Create one more step in the Flow section of your smart campaign to change the Data value of this field after the form is filled. In attributes, select your field name and under date mention thi system token- {{system.dateTime}}.

Now fill the form and run your report so check if the date and time is getting captured or not.

If you are able. Give a thumbsup.

Thanks,

Gautam Malik