I
I
Igor2017-03-24 04:55:31
JavaScript
Igor, 2017-03-24 04:55:31

Form and Yandex goals. How to realize such a wish?

Good afternoon
There is a simple feedback form, a validation field (phone number) and a send button.
You need to set up two Yandex goals: 1. to successfully submit the form and 2. to click the submit button.
The catch is this:
If goal #1 worked, then #2 shouldn't work.
Can this be done at all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Troinov, 2017-03-24
@tot0ro

Hmmm, how are you going to submit the form without clicking the button???

P
Pavel, 2017-03-24
@PavelFokeev

Hang an event for validation (it also happens immediately after the button is pressed).
If everything is fine, then the form will be successfully submitted (call target 1, or even better, call after submitting if it is ajax), if not (fields are not filled/incorrectly filled) - call target 2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question