SOLVED

Prevent empty notes fields from adding date stamp

Go to solution
jroscoe1
Level 2

Prevent empty notes fields from adding date stamp

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

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Prevent empty notes fields from adding date stamp

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.

 

View solution in original post

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: Prevent empty notes fields from adding date stamp

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
Level 10 - Community Moderator

Re: Prevent empty notes fields from adding date stamp

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.

jroscoe1
Level 2

Re: Prevent empty notes fields from adding date stamp

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. 

System Date time stamp.png

SanfordWhiteman
Level 10 - Community Moderator

Re: Prevent empty notes fields from adding date stamp

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.

 

View solution in original post

jroscoe1
Level 2

Re: Prevent empty notes fields from adding date stamp

Would that be this step? 

 

Marketing Note Update.png

 

Tags (1)
SanfordWhiteman
Level 10 - Community Moderator

Re: Prevent empty notes fields from adding date stamp

Yep.