# Conditional Instructions

> Validate WPF form fields with conditional instructions from the Form Fields ribbon tab or in C#: the Condition alias, date and regex rules and radio groups.

- **Product:** TX Text Control .NET for WPF
- **Section:** Documentation
- **Kind:** Topic
- **Path:** TX Text Control .NET for WPF > Document Processing > Conditional Instructions
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/llms-full.txt

---

## On This Page

- [How Conditional Instructions Work](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#how-conditional-instructions-work)
- [Set Up the Window](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#set-up-the-window)
- [Create Rules With the Ribbon](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#create-rules-with-the-ribbon)
- [Create Rules in Code](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#create-rules-in-code)
- [Conditions for Each Form Field Type](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#conditions-for-each-form-field-type)
- [Combine Conditions With And and Or](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#combine-conditions-with-and-and-or)
- [Instruction Types](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#instruction-types)
- [Else Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#else-instructions)
- [Initial and Change Instructions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#initial-and-change-instructions)
- [Find Invalid Values](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#find-invalid-values)
- [Example: A Booking Request Form](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#example-a-booking-request-form)
- [More Condition Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#more-condition-examples)
- [More Instruction Examples](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#more-instruction-examples)
- [Radio Button Groups](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#radio-button-groups)
- [Next Steps](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/conditional-instructions/#next-steps)

---

## Nearby

- **Previous:** [Exceptions and Error Handling](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/exceptions/llms.txt)
- **Next:** [Content Controls](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/document-processing/content-controls/llms.txt)
