Don't actually modify the normal Add button. I wanted you to "clone" it IE make one that mimics it and that's where your extra code goes. This code then triggers the Add button
[Check box] toggles which button # is visible
{YourCloned button #1} Press it, do some stuff, press the Add button, close window
{YourCloned button #2} Press it, do some stuff, press the Add button
{Add button} gets pressed by the cloned button
|