Filtering true form submission in event-based rule | Community
Skip to main content
jaykwon
New Participant
August 24, 2018
Solved

Filtering true form submission in event-based rule

  • August 24, 2018
  • 3 replies
  • 3650 views

Dear Adobe Community,

I have a question for you guys. Please give me a hand, professionals!

When I create a rule to a submit button and add an event-based rule to generate an event, the tag fires whenever a user clicks the button.

So this can include an action that user clicks but fails to submit because an alert message pop-up.

In this case, how can I modify my tag only to track true data that users submits and go well to the database.

Sincerely,

Jaehong Kwon

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kaushalendra

Hi jaykwon​,

In the rule you have to fire the tag, you can add the same form validations as you have for various failures. In case the validation fails, you can return false which will not trigger the rule.

3 replies

Kaushalendra
Employee
August 28, 2018

Hi jaykwon​,

Yes, it needs to be added as custom JavaScript.

jaykwon
jaykwonAuthor
New Participant
August 24, 2018

Dear Kaushalendra,

Thank you for you support. You mean the same javascript in the form submit action to DTM? Then it will be custom javascript rather than just click condition using css selector?

Kaushalendra
KaushalendraAccepted solution
Employee
August 24, 2018

Hi jaykwon​,

In the rule you have to fire the tag, you can add the same form validations as you have for various failures. In case the validation fails, you can return false which will not trigger the rule.