# Optional Lines in Printing (Skip Field if Blank)

**YouTube:** [How to Configure Optional Lines in Document Printing ( Skip Field if Blank )?](https://www.youtube.com/watch?v=SuLAaa-BJAw)

## How to Configure Optional Lines in Document Printing (Skip Field if Blank)?

In this tutorial, we’ll demonstrate how to configure the option that **automatically skips any field if its value is blank** in both **Visual Base Printing** and **Designer Printing** formats.

***

### Enable Skip Blank Fields in Multiple Printing Configuration

* Go to Menu/Configuration and select **"Sale Multiple Printing Configuration"**.
* Select the **required series**.
* Optional lines can be defined in both the **header** and **footer**.
  * Example: If a bill contains items only under a single GST slab, you can skip the other tax slab fields automatically.
* Go to the **Footer section**&#x20;

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2F4tp2ICgjKBNQc1M73Mgs%2FVB%20-%20Footer.png?alt=media&#x26;token=c434654a-285f-473f-af2c-7c86463b4e9b" alt=""><figcaption></figcaption></figure>

* Locate the option Functions Icon (top-right).
* From the dropdown, choose **Skip if All Fields are Blank**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FHNZmzn7CqLICDGPfwSdL%2FVB%20-%20Optional%20Line.png?alt=media&#x26;token=afa233b1-6ec7-4d6b-95b3-45216f4f93e2" alt=""><figcaption></figcaption></figure>

* Save the configuration.
* Open the Sale Bill **Print Preview**.
* &#x20;Blank fields are skipped (e.g., only GST 5% appear while other slabs are hidden).

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FuNg6UksxlWJTgZW3ynNp%2FVB%20-%20TAX%20SKIP.png?alt=media&#x26;token=0f1a7ee9-5302-4178-9412-54dd8f4ead08" alt=""><figcaption></figcaption></figure>

***

### Enable Skip Blank Fields in Designer Printing

* Go to Menu/Continuous Printing and then select **"Sales Bill Print Designer and Printing"**.
* Select the **required configuration** and **sales bill**, then click **Refresh**.
* Preview the bill first to compare before/after results.
  * Example: Discount or IGST may appear even when no value is defined.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fo4NkiIdYKpDJZ9Hxzp51%2FDP%20-%20WO%20Preview.png?alt=media&#x26;token=25047d2e-4f7c-4f78-905c-55decf233dfc" alt=""><figcaption></figcaption></figure>

* Close the preview and click **Design**.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FqXi4vbzjBSOKfnGpPohI%2FDP%20-%20Design.png?alt=media&#x26;token=e9960428-9587-48b7-ad4f-9e6b63822250" alt=""><figcaption></figcaption></figure>

* From the Menu Bar/Options click on **Preview Options**

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FzHuvRvof3lX6vVTBMHXW%2FDP%20-%20Preview%20Options.png?alt=media&#x26;token=d7977c7a-829f-4ccc-9920-1829a5f60d96" alt=""><figcaption></figcaption></figure>

* Locate the option labeled as " **Allow Optional Lines in Printing**."

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2Fk5JOc8mpKWLIPaOLG74j%2FDP%20-%20Allow%20Optional.png?alt=media&#x26;token=15416db8-4864-4b26-a3fd-331f743c98a7" alt=""><figcaption></figcaption></figure>

* Now, go to the **Footer (Total Details section)**.
  * Click between the fields → Open **Options → Skip Line if Value is Blank**.
  * A caret (^) symbol will appear, marking it as optional.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FYF65Eb9jbu22TYzoZ3ey%2FDP%20-%20Add%20Carrot.png?alt=media&#x26;token=4a922f75-18f8-4168-9e2d-b2089eab5111" alt=""><figcaption></figcaption></figure>

* Apply this setting to all relevant fields (e.g., IGST, Discount, etc.).
* Save the layout and preview again.
* Fields with no values are now hidden automatically.

<figure><img src="https://4031188996-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXMVkjt8zqHBQX1c9QvFS%2Fuploads%2FwTq3eIU0TpHcwp5asVuP%2FDP%20-%20Final%20Preview.png?alt=media&#x26;token=412f8aee-046b-45ad-a109-2b8d6dd927ff" alt=""><figcaption></figcaption></figure>
