Answers.Body: <p>You could test if the first cell is empty</p>
  
  <pre><code>{% if entry.whiskeyTableHandle|length and entry.whiskeyTableHandle[0][0] %}
  {% endif %}
  </code></pre>
  
  <p>Or you simply remove all default rows in the field’s settings.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-15T06:17:33.337Z
Answers.Text: Ahhhh.....I didn't realise the row could be deleted at the default level. That's exactly what I was looking for and solved my problem. Thanks.
Answers.UserDisplayName: Benek Lisefski
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-10-14T23:30:36.393Z
Answers.LastActivityDate: 2016-10-14T23:30:36.393Z
Answers.UserDisplayName: carlcs
Body: <p>I'm having a small problem with table fields. My issue is that by default a table fields starts with one row. Even if you leave this row empty (no values at all in any column) the field will never return as empty because that row exists even though it has no value. In order to get an empty field check like this to work: </p>
  
  <pre><code>{% if entry.whiskeyTableHandle | length %}
  </code></pre>
  
  <p>You have to actually delete that first empty row rather than simply leave it blank.</p>
  
  <p>I cannot count on my client to remember to delete the row to indicate an empty field.</p>
  
  <p>Would there be any way to have the table field show in the CP publish page with no rows visible by default? That means if nothing is added to the field it will properly return as empty.</p>
  
Tags: <templating><field><fieldtypes><table-field>
Title: Table fields, default single empty row, and never returning as empty?
ThreadText: # Table fields, default single empty row, and never returning as empty?
  
  (Asked by: username_0 on 2016-10-14)
  
  I'm having a small problem with table fields. My issue is that by default a table fields starts with one row. Even if you leave this row empty (no values at all in any column) the field will never return as empty because that row exists even though it has no value. In order to get an empty field check like this to work:
  
  ```
  {% if entry.whiskeyTableHandle | length %}
  
  ```
  
  You have to actually delete that first empty row rather than simply leave it blank.
  
  I cannot count on my client to remember to delete the row to indicate an empty field.
  
  Would there be any way to have the table field show in the CP publish page with no rows visible by default? That means if nothing is added to the field it will properly return as empty.
  
  **Tags:** templating, field, fieldtypes, table-field
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-10-14. Score: 4 | Accepted answer
  
  You could test if the first cell is empty
  
  ```
  {% if entry.whiskeyTableHandle|length and entry.whiskeyTableHandle[0][0] %}
  {% endif %}
  
  ```
  
  Or you simply remove all default rows in the field’s settings.
  
  > **Comments:**
  > **username_0**: Ahhhh.....I didn't realise the row could be deleted at the default level. That's exactly what I was looking for and solved my problem. Thanks.  
  
  ---
  
  