Prevent empty notes fields from adding date stamp | Community
Skip to main content
New Participant
March 30, 2021
Solved

Prevent empty notes fields from adding date stamp

  • March 30, 2021
  • 1 reply
  • 3390 views

I have a form that uses a field for marketing notes. It's not required, but there in case a person asks a question, etc.

 

Is there a way to prevent the date stamp from being added when nothing is added to the field upon submission?

 

An example landing page here. 

 

It's the "Have a Question" field

Best answer by SanfordWhiteman

Thank you, Sanford. I checked, and it is an instance wide smart campaign adding the "system date" token. 

Would the option then be to add the choice it New Marketing Note is empty to not add anything? Which I'm confused about because it's adding a date stamp even when nothing is added. 


Is there another step that empties New Marketing Notes (i.e. sets it to NULL)?

 

Because otherwise it will appear non-empty whenever someone enters the flow.

 

But I agree that this flow step alone should not be prepending a timestamp to the Marketing Notes history field if New Marketing Notes is empty.

 

1 reply

SanfordWhiteman
New Participant
March 30, 2021

By default, forms don't add anything to Textarea fields. The timestamp would have to be added (a) in custom JS or (b) in a Smart Campaign. Are you sure you're not doing it in a Smart Campaign w/Change Data Value?

SanfordWhiteman
New Participant
March 30, 2021

Looking at it further it's certain that newMarketingNote doesn't have a timestamp prepended on the form side. That's in one of your Smart Campaigns.

Jroscoe-3Author
New Participant
March 30, 2021

Thank you, Sanford. I checked, and it is an instance wide smart campaign adding the "system date" token. 

Would the option then be to add the choice it New Marketing Note is empty to not add anything? Which I'm confused about because it's adding a date stamp even when nothing is added.