Tip: A number of tips have talked about the need to not continue an agent if the current form fails validation.
People may not know the @IsValid formula, which is used for this purpose. The line of code below says "If the form passes validation, continue; if not, stop". The usually @Failure statements will follow. @If(@IsValid; ""; @Return(""));