Table of Content
Still need help?
Request support
Request Support
Help
 / 
 / 
Technical FAQs
 / 

How to Hide Empty Fields from Submitted Records or PDFs?

"In my orders tab, I don’t want blank fields like ‘Comments’ or ‘Discount’ to show up. It makes the output cluttered. Is there a way to only display filled-out fields in reports or generated PDFs?"

Yes, Clappia enables you to hide empty fields or blank rows from reports and PDFs, ensuring clean, focused output. Through dynamic printing configurations and conditional display rules, you can automatically suppress any fields or table rows that lack data, improving your document's clarity.

How Hiding Empty Fields Works

Clappia offers mechanisms to exclude empty fields from visual reports while preserving the integrity of your data for workflows and calculations. This is achieved through:

  • Dynamic Printing with Table Properties: Tables in print templates, when linked to data fields, leave cells blank for empty fields by default. By enabling Delete empty rows in the table properties, entire rows with no data are removed from the generated PDF reports. This declutters your output by removing irrelevant rows.
  • Conditional Display in App Forms: The "Display this field if" property allows you to set formula-based conditions to show a field only if it contains data. Using expressions like @Comments != "" helps dynamically control whether a field appears in forms or associated reports.
  • Retention of Data for Hidden Fields: When fields are hidden based on conditions, you can choose to retain their values internally for backend operations, ensuring hidden data still participates in calculations or workflows.

How to Hide Empty Rows in PDF Reports

Access the Print Template and Table Settings:
  • Open your Clappia app's print template that generates PDFs.
  • Select the table showing your order-related fields such as "Comments" or "Discount".
  • Click on Table in the print template toolbar.
  • Pick Table Properties from the dropdown menu.
Configure Row Deletion for Empty Rows:
  • Within the Table Properties dialog, find the Class dropdown.
  • Select Delete empty rows to ensure completely blank rows are excluded in the PDF output.
  • Save these changes to update the print template.

This setup removes only entirely empty rows, preserving partially completed rows with blank cells, keeping meaningful data visible while eliminating visual clutter.

How to Conditionally Show or Hide Fields in Your App

Use the "Display this field if" Feature:
  • Navigate to the form or screen containing fields like "Comments" or "Discount" in your Clappia app.
  • Select the field you want to conditionally display.
  • Locate the Display this field if option in the field's properties.
  • Enter a formula such as @Comments != "" to show this field only when it contains data.
  • Save your changes to activate dynamic visibility.
Additional Options:
  • Enable Retain value if hidden if you want the app to keep data from hidden fields for internal processing, such as calculations or workflow triggers.

Practical Use Cases for Hiding Empty Fields

  • Order Management: Remove empty 'Comments' or 'Discount' fields from printed invoices and order summaries, so the document highlights only filled information. For a comprehensive guide on order solutions, see Order Management Solutions: Why Choose Clappia.
  • Inspection Reports: Automatically omit rows lacking inspection notes or photos to keep PDF reports concise and easier for supervisors to review. See Daily Field Inspection Reports for details.
  • Service Requests: Display only fields where customers have entered remarks or requests, minimizing clutter in notifications and reports. Learn more in Client Service Request Tracker.

Advanced Configuration Options

Troubleshooting Common Issues

  • Empty Cells Still Showing: Verify the Delete empty rows option is enabled in the correct table and saved in the print template.
  • Conditional Display Not Working: Double-check the syntax of your Display this field if formula, ensuring it references fields correctly with @ notation, e.g., @Comments. For formula syntax guidance, see Display this field if | Clappia.
  • Data Lost When Field Hidden: Make sure Retain value if hidden is active if you want to keep data for backend use despite the field being hidden.

Best Practices for Implementation

  • Plan Your Data Structure: Group optional fields logically in your data tables to enhance how empty rows are identified and deleted during PDF generation. Insights on data management: Simplifying Data Management with Clappia's Bulk Upload Feature.
  • Test Your Print Templates: Always preview PDFs with various data inputs to ensure empty fields and rows hide correctly before final publishing.
  • Use Clear Variable Names: Use descriptive variable names across your app and templates to avoid errors in conditional formulas and ease maintenance. More tips: Using Clappia for Calculators.

Conclusion

By configuring Clappia's print templates to delete empty rows and applying the Display this field if condition for fields, you can effectively hide empty fields in orders, reports, and PDFs. This keeps your documents professional and readable, focusing attention on relevant information. Consider pairing these techniques with Automating Report Generation for Process Efficiency to optimize your overall reporting workflow.

FAQs
Try our free plan
It will answer many more questions within just 15 minutes.