Filtering true form submission in event-based rule

Avatar

Avatar

jaykwon

Avatar

jaykwon

jaykwon

23-08-2018

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Kaushalendra

Employee

Avatar

Kaushalendra

Employee

Kaushalendra
Employee

24-08-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.

Answers (2)

Answers (2)

Avatar

Avatar

Kaushalendra

Employee

Avatar

Kaushalendra

Employee

Kaushalendra
Employee

28-08-2018

Hi jaykwon​,

Yes, it needs to be added as custom JavaScript.

Avatar

Avatar

jaykwon

Avatar

jaykwon

jaykwon

24-08-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?