Problem with displaying a notification (When click Button)

Hello everyone - I will be very grateful for your help. I have a task, I need:


When I choose - Yes, the program needs to remember this and 

when at the next stage I press this button the program should display a notification "cannot be added" and shouldn't show a popup

But if i select - No

when at the next stage I press this button

 The program should let me go to the next page without notification and should show a popup


 I built logic but it doesn't work for me

Kan,

Maybe in your case the wizard pattern can fit with a glove. ;-)

Changing a little bit your approach.

Wizard Pattern

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.