# Conditionals

Use conditionals to show additional questions, depending on the applicant’s answers.

Conditionals help applicants understand “if, then” parts of the form. They won’t have to read an entire question to understand if they have to answer it.

| Do                                                                                                                                                                   | Do not                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| <p>Do you have a dog?</p><ul><li>Yes, I have a dog</li><li>No</li></ul><p><em>If yes, show</em></p><p><br>Dog breed</p><p><em>\[text input or radio button]</em></p> | <p>If you have a dog, tell us the breed.<br><br><br><br><br><br><br></p> |

### **Questions about change**

When a user has to refer to another field to answer a field, the conditional question should appear on the same page.<br>

| **Do**                                                                                                                                                                                                                                                                                                   |   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | - |
| <p>Current square feet of parking area</p><p><em>\[number]</em> square feet<br><br>Will the square feet of parking change after construction?</p><ul><li>Yes</li><li>No</li></ul><p><em>If Yes, show</em></p><p>Square feet of parking area after construction </p><p><em>\[number]</em> square feet</p> |   |

![](/files/-M8SaQuQdxNjX190aSzm)


---

# 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://sfdigitalservices.gitbook.io/style-guide/how-to-write-forms/conditionals.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.
