# REQUIRED

### Property description

The required attribute prevents submitting components until validation matches a specific condition. It also highlights the current element as mandatory.

<div align="left"><img src="https://lh4.googleusercontent.com/PpZ6lBZmq4VCnjDB2lTr35Ac7EiSM3cSBQjhVkgahfrvwgji0eOiSkfXaTYv0E7i-ald4Tkt4jwjI893VN0C2rAaLH7o_ITFU5UvyThhgaWj43f5q7DQKQeJIshiY3c_8-kbYYIR" alt="Switching a state as a constant"></div>

<div align="left"><img src="https://lh5.googleusercontent.com/x99-wSSZGtGWavsqmVe2Vt_gG1uwnyeyNRrSWnfL_69DrKtdOY-0MMyaIyS1K5wOUEIQ_RilK4Kiz0f9OUjnQRqNjtQJbYHGVbS_R_oWo-47vKDgVgrDlqM2M-4KBTMLBLkgl3Oe" alt="ƒx (Boolean)"></div>

### State

Set up the required attribute for a current component.

### Value type

true, false

### Availability

[File Upload](/reference-guide/components-list/file-upload.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.adapptio.com/reference-guide/properties/required.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
