Expand my Community achievements bar.

SOLVED

Filtering true form submission in event-based rule

Avatar

Level 3

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

1 Accepted Solution

Avatar

Correct answer by
Employee

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.

View solution in original post

3 Replies

Avatar

Correct answer by
Employee

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.

Avatar

Level 3

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?

Avatar

Employee

Hi jaykwon​,

Yes, it needs to be added as custom JavaScript.