As this custom script need for only one button, can move that script to click event itself and can take care the things, if this code block not thru can cancel the rest of the steps.If need to place on pre-submit it self:1. Place a new field on form as hidden field, ex: flagField. 2. Assign some spe...