# Sample: Validating field content in a form hosted in Adobe Acrobat

This sample demonstrates how to use the Acrobat Scripting API within an XFA form to make invalid fields flash red when you attempt to submit the form.