You place the confirmation scripts in the text box in the form editor (Confirmation Tab):