# Validation Control object vs variable

> The Validation Control object and the Validation Control variable are both part of how UiPath Apps handle the Validation Control component, but they serve different purposes. If you want to bind logic, reference field values, or manage validation results, use the variable. If you want to adjust layout or properties of the visible control, use the object.

The Validation Control object and the Validation Control variable are both part of how UiPath Apps handle the Validation Control component, but they serve different purposes. If you want to bind logic, reference field values, or manage validation results, use the variable. If you want to adjust layout or properties of the visible control, use the object.

Here is a breakdown of the differences between the object and the variable, so you can use them correctly in your app:

 <colgroup>
  <col/>
  <col/>
  <col/>
 </colgroup>
 
  
    Feature 
    Validation Control object 
    Validation Control variable 
  
 
 
  
    What it is 
    This is the UI component you drag onto a canvas when building your web app in Studio Web. 
    This is an auto-generated app variable that links to the Validation Control object. It holds all the data and logic behind the UI, such as taxonomy, extraction results, and current user selections. 
  
  
    What it does 
   
      
         Displays the document and extracted data to the user. 
         Allows direct user interaction in the browser, to review or correct information. 
         Supports basic App controls properties, such as DataSource , Hidden , Disabled , and ShowDocumentType . 
      

   
      
         Allows programmatic access to the Validation Control data. 
         Allows reading and writing data. 
         Stores data and exposes logic behind the control. 
      

  
  
    Where to use it 
   
      
         In the app designer, during design time. 
         For UI-level logic, such as styling or setting visibility at runtime, for example <code>ValidationControl1.Hidden = true</code> . 
      

   
      
         In expressions or automation activities, such as Set Variable Value . 
         For binding dropdowns, running logic, updating field values, or accessing document metadata. 
         In more complex workflows where you need to inspect or update the contents of the validation task dynamically.
