Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Filtering true form submission in event-based rule

jaykwon
Level 3
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
Kaushalendra
Correct answer by
Employee
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
Kaushalendra
Correct answer by
Employee
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

jaykwon
Level 3
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?

Kaushalendra
Employee
Employee

Hi jaykwon​,

Yes, it needs to be added as custom JavaScript.