Skip to main content
← Back to Blog
Product

A Questionnaire With Branching Logic That Still Ends in a Clean PDF

Conditional logic and a clean PDF output are usually treated as opposites -- a branching form or a static document, pick one.

MarketKloud Forms··5 min read
The Branching PDF Questionnaire
Key takeaways
  • →A static PDF questionnaire can't branch -- every recipient sees every section, including ones that don't apply to them, because a PDF has no logic behind it.
  • →A branching form usually solves the logic problem but leaves the output stranded in a dashboard with no clean document to hand someone afterward.
  • →The generated document should include only the sections a specific respondent actually saw -- not blank or "N/A" placeholders for skipped branches.
  • →Computed scores and categorized outcomes belong in the document itself, not just a transcript of raw typed answers.
  • →This pattern earns its complexity when the document is the actual deliverable someone keeps or hands off -- for a quick internal poll, it's more tooling than the job needs.

A traditional PDF questionnaire -- fillable fields on a static document -- has one structural limitation that no amount of clever field design fixes: it can't branch. Every recipient sees every section, whether or not it applies to them, because a PDF has no logic behind its pages. A web-based form solves that, but then usually leaves the output stranded in a dashboard, with no clean document to hand someone afterward. Both gaps are avoidable if the form and the output are treated as one connected thing instead of two separate problems.

Why a static PDF can't do what a form-based questionnaire can

A PDF's fields are fixed at the moment the document is created. There's no way for answering "no" to question 3 to hide questions 8 through 12 -- every recipient has to see and skip past sections that don't apply to them, which is both a worse experience and a document that looks unfinished when half of it is deliberately left blank.

What a branching questionnaire needs to produce afterward

  1. Only the questions the respondent actually saw should appear in the output. If a branch skipped a section entirely, that section shouldn't show up as a blank or "N/A" block in the final document -- it should not exist in that respondent's output at all, the same way it didn't exist in their experience of the form.
  2. Computed values -- scores, totals, categorized outcomes -- belong in the document, not just the raw answers. A questionnaire that scored the respondent should show that score in the PDF, not just a transcript of what they typed.
  3. The document needs to look like a finished deliverable, not a raw data dump. Formatted headers, the respondent's name, a clean layout -- the difference between something a client keeps and something that reads as a debug export of form data.
  4. It should be available immediately, not generated later by someone manually. The value of a document tailored to what someone specifically answered drops fast if a person has to build it by hand after the fact instead of it being ready the moment the questionnaire is complete.

Where this pattern earns its complexity

This is worth building specifically when the questionnaire's output is something someone needs to keep, print, or hand off -- a client intake summary, an assessment report, a compliance questionnaire that needs a signed record. For a quick internal poll, a static PDF (or no PDF at all) is the right amount of tooling. The branching-plus-PDF pattern earns its complexity when the document itself is the deliverable, not just a byproduct of collecting answers.

A questionnaire that branches while being filled out and still ends in a clean, finished document isn't a compromise between the two approaches -- it's what both approaches were actually trying to get to.

Getting the formatting right, not just the content

The output document is often the only artifact a respondent keeps from the entire interaction -- worth treating its formatting as seriously as the form's own design, not as an afterthought default template. Branded, consistent formatting on the generated PDF carries the same weight as the form's visual design in how professional the whole interaction feels.

Building this without a developer

Branching logic that determines what a respondent sees, feeding directly into a generated PDF that only includes the sections and computed results relevant to that specific respondent, is buildable visually -- the PDF generation is native to the outcome/results system, not a separate export step someone runs by hand afterward.

PDF questionnaire with logicconditional logic form PDF exportbranching form generated documentquestionnaire PDF report builderform to PDF automation

Build a form that actually branches

Free forever, no credit card. See the difference in five minutes.

Start free →

Related articles