# Sneak Peek X18: Form Field Conditional Instructions

> In version X18, we will introduce form fields processing functionality to TX Text Control that allows developers to create and deploy forms.

- **Author:** Bjoern Meyer
- **Published:** 2020-01-03
- **Modified:** 2026-07-17
- **Description:** In version X18, we will introduce form fields processing functionality to TX Text Control that allows developers to create and deploy forms.
- **3 min read** (577 words)
- **Tags:**
  - ASP.NET
  - Form Fields
  - Future of Documents
  - Release
  - Reporting
  - X18
- **Web URL:** https://www.textcontrol.com/blog/2020/01/03/sneak-peek-x18-form-field-conditional-instructions/
- **LLMs URL:** https://www.textcontrol.com/blog/2020/01/03/sneak-peek-x18-form-field-conditional-instructions/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2020/01/03/sneak-peek-x18-form-field-conditional-instructions/llms-full.txt

---

With TX Text Control X18, we will introduce a form field processing functionality to create and deploy forms including MS Word compatible fields such as checkboxes, drop-down boxes and form text fields. Documents created in MS Word containing legacy form fields and content control form fields can be imported into TX Text Control.

A unique feature of these forms is the option to add conditional instructions to each form field and to connect fields logically. Using instructions, it is possible to add dependencies between fields based on logical operators.

The following screenshot shows a typical tax form with the business type selection:

![Form fields in TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/03/a/assets/form.webp "Form fields in TX Text Control")

In order to add logic to this section, we will implement 4 different instruction rules to cover the following scenarios:

1. One of three checkboxes must be selected.
2. Only one checkbox can be selected at the same time.

The first instruction *Type* is handling the first requirement. If all checkboxes are not selected, mark all fields as invalid.

![Form fields in TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/03/a/assets/type.webp "Form fields in TX Text Control")

Visually, invalid fields can be highlighted (in this screenshot in yellow). The instructions are activated automatically when the document is in "read only protection" mode. This is the same process like the document protection feature that has been introduced in [version X15](https://www.textcontrol.com/blog/2017/11/16/ms-word-compatible-editable-regions/llms-full.txt).

![Form fields in TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/03/a/assets/type.webp "Form fields in TX Text Control")

Programmatically, you can loop through the form fields using the API in order to check for invalid fields before a document is saved or submitted (or any other process that is started when users are completing your forms).

The other three instruction rules define that only one field can be selected at the same time. The following screenshot shows one of these three instructions:

![Form fields in TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/03/a/assets/switch.webp "Form fields in TX Text Control")

If more than one field of this group is checked, the others will be unchecked:

![Form fields in TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/03/a/assets/uncheck.webp "Form fields in TX Text Control")

These conditional instructions can be used for many different scenarios. It is possible to add a complete workflow to forms by adding dependencies between form fields. If a specific form field is getting a defined value, rules can change the value of other defined fields or disable/enable form fields in other sections.

### Regular Expressions for Syntax Checking

Additionally, it is possible to check the syntax of form fields by adding a regular expression to the conditional instruction. The following instruction is matching a form field to a US telephone number in the format *XXX-XXX-XXXX*.

![Form fields in TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/03/a/assets/phone.webp "Form fields in TX Text Control")

This screen video shows the invalidation of the telephone form field when typing in an invalid syntax:

![Form fields in TX Text Control](https://s1-www.textcontrol.com/assets/dist/blog/2020/01/03/a/assets/phone.webp "Form fields in TX Text Control")

Stay tuned for more features of the upcoming version X18!

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [X18 Outlook: Creating and Completing Forms with TX Text Control](https://www.textcontrol.com/blog/2019/10/28/creating-and-completing-forms-with-tx-text-control/llms.txt)
- [Text Control Roadmap 2019: High DPI Support, Forms, Node.js and Angular](https://www.textcontrol.com/blog/2019/03/12/text-control-roadmap-2019/llms.txt)
- [TX Text Control 32.0 Has Been Released](https://www.textcontrol.com/blog/2023/09/13/tx-text-control-320-has-been-released/llms.txt)
- [TX Text Control 31.0 and TX Spell .NET 10.0 Have Been Released](https://www.textcontrol.com/blog/2022/09/07/tx-text-control-31-released/llms.txt)
- [TX Text Control 30.0 and TX Spell .NET 9.0 Have Been Released](https://www.textcontrol.com/blog/2021/11/29/tx-text-control-30-released/llms.txt)
- [DocumentViewer: Deploying Forms](https://www.textcontrol.com/blog/2021/07/02/document-viewer-deploying-forms/llms.txt)
- [TX Text Control X19 and TX Spell 8.0 Have Been Released](https://www.textcontrol.com/blog/2020/12/02/tx-text-control-x19-released/llms.txt)
- [MVC NuGet Packages for X18 Published](https://www.textcontrol.com/blog/2020/03/17/mvc-nuget-packages-for-x18-published/llms.txt)
- [TX Text Control X18 has been Released](https://www.textcontrol.com/blog/2020/03/16/tx-text-control-x18-released/llms.txt)
- [DocumentViewer: New Two Page View Mode](https://www.textcontrol.com/blog/2020/01/02/documentviewer-new-two-page-view-mode/llms.txt)
- [See Text Control at DDC in Cologne](https://www.textcontrol.com/blog/2019/11/24/see-text-control-at-ddc-in-cologne/llms.txt)
- [Impressions from DEVintersection Fall 2019](https://www.textcontrol.com/blog/2019/11/22/impressions-from-devintersection-fall-2019/llms.txt)
- [Impressions from TechBash 2019](https://www.textcontrol.com/blog/2019/11/14/impressions-from-techbash-2019/llms.txt)
- [TX Text Control X17 has been Released](https://www.textcontrol.com/blog/2019/05/28/tx-text-control-x17-released/llms.txt)
- [Meet Text Control at NDC London 2019 at QEII in Westminster](https://www.textcontrol.com/blog/2019/01/17/meet-text-control-at-ndc-london-2019/llms.txt)
- [Visualize Document Tracked Changes in Web Applications](https://www.textcontrol.com/blog/2019/01/13/visualize-tracked-changes/llms.txt)
- [TX Text Control X16 and TX Barcode .NET 5.0 Released](https://www.textcontrol.com/blog/2018/11/14/tx-text-control-x16-and-tx-barcode-net-50-released/llms.txt)
- [Sneak Peek X16: Filter and Sort MergeBlock Rows](https://www.textcontrol.com/blog/2018/04/26/sneak-peek-x16-filter-and-sort-mergeblock-rows/llms.txt)
- [X15: Merging Data into Chart Objects](https://www.textcontrol.com/blog/2018/01/05/merging-data-into-charts/llms.txt)
- [X15: Adding MS Word Compatible Fields and Form Elements to TXTextControl.Web](https://www.textcontrol.com/blog/2017/12/20/using-ms-word-form-elements-in-txtextcontrol-web/llms.txt)
- [TX Text Control X15 and TX Spell .NET 7.0 Released](https://www.textcontrol.com/blog/2017/12/13/tx-text-control-x15-and-tx-spell-net-70-released/llms.txt)
- [Sneak Peek X15: MS Word Compatible Document Protection and Editable Regions](https://www.textcontrol.com/blog/2017/11/16/ms-word-compatible-editable-regions/llms.txt)
- [Web.TextControl: Adaptive Merge Field Drop-down Lists](https://www.textcontrol.com/blog/2017/02/15/webtextcontrol-adaptive-merge-field-drop-down-lists/llms.txt)
- [X14 Preview: Build Your Own Template Designer with the New DataSourceManager Class](https://www.textcontrol.com/blog/2016/11/15/x14-preview-build-your-own-template-designer-with-the-new-datasourcemanager-class/llms.txt)
