LogoLogo
ClausesDatafieldsSpecial FunctionsStylingQ&AAPI
  • Welcome!
  • Getting started
    • What is Clause9?
    • Structuring your clause library
    • Structuring your clauses
    • Drafting modes in Clause9
    • Creating a questionnaire
    • Sample clauses
    • Videos
      • Concepts and datafields
      • Conditions
      • Q&As
      • Binders
      • Styling
      • Enumerations
      • Tables
      • Definitions
      • Snippets
      • Cross-references
      • Special functions
      • Examples of common clauses
      • Import clauses from MS Word
      • Grammatical conjugations
      • Action buttons
      • Alternative clauses
  • Assemble document
    • Document toolbar
    • Clause hierarchies
    • Focus Mode
    • Bulk generation of documents
    • Exporting documents
    • Assemble Document - FAQ
    • How to: Assemble Document
      • Insert images
  • Assemble Document Operations Panel
    • Operations panel
    • File pane
    • Edit pane
    • Document pane
    • Binder pane in the operations panel
    • Search pane
    • Browse pane
    • Terms pane
    • Data dashboard
    • Advanced pane
    • Styling pane
    • Miscellaneous pane
    • Visibility settings & actions menu
  • Binders
    • Binders: general
    • Styling cross-references to subdocuments
    • Global and local definition lists
    • Document and binder properties
    • Styling of a Binder versus subdocuments
    • (Un)locking documents in a binder
    • Binders - FAQ
    • How to: binders
      • Make a subdocument in a binder conditional
  • Clauses
    • Introduction to clauses
    • Clause structure
    • Grammar sheet
    • Writing conditions
    • Examples of conditions
    • Using codes instead of text fragments
    • Bold, italic and underline
    • Special codes
    • Enabled?
    • Links
    • Cross-references
    • Introduction to tables
    • Deviating table styling
    • Shrinking clauses
    • Action buttons
    • Enumerations
    • File position
    • Snippets
    • Parameters
    • Conjugations
    • Mixing data types
    • For-loops
    • Clause versioning
    • Abstract article references
    • Advanced multi-language features
    • Clauses - FAQ
    • How to: clauses
      • Create an ad-hoc clause
      • Create a library clause
      • Make a clause repeat
      • Make a paragraph within a clause conditional
      • Use a shortcut to refer to a concept
      • Insert a line break or page break
      • Creating a list with both predefined options and free input
      • Defining alternative clauses
      • Creating cross-references
      • Creating signature blocks
      • Creating advanced party introduction clauses
      • Automatically numbered annexes or schedules
      • Reuse any clause in a different context
      • Setting MS Word document properties
      • Add action buttons to clauses
      • Electronically signing documents
  • concepts
    • Introduction to concepts
    • Creating concepts
    • Concept labels
    • Links
    • Organising concepts
    • Concepts - FAQ
    • How to: concepts
      • Add predefines to a datafield
  • Datafields
    • Introduction to datafields
    • Types of datafields
    • Rules of thumb for using datafields
    • Data-expressions
    • Datafield aliases
    • Datafield labels
    • Datafield special tags
    • Datafield descriptions
    • Repeating list datafields
    • Datafield predefines
    • Datafields - FAQ
    • How to: datafields
      • Change datafield type
      • Change the datafield's name or alias
  • Definitions
    • Introduction to definitions
    • How to: definitions
      • How do definitions work?
      • Create a definition
  • Files
    • How files are organised
    • Browse files
    • File types
    • Custom styling
    • Legal comments
    • File description
    • Attributes
    • Reporting
    • File name
    • File category
    • Access rights
    • How to: files
      • Creating advanced folders
      • Naming your files
      • Shortcuts to folders or files
  • Q&A
    • About cards
    • Cards pane
    • About changes
    • Changes pane
    • Types of changes
    • Adding conditions
    • Question options
    • Copying & pasting answers
    • Comments, notes & documentation
    • Interactive Q&A inspection
    • Embedding questions into a document
    • “Changes” button
    • Batch create pane
    • Identifiers pane
    • Import pane
    • Edit clauses pane
    • Q&A options
    • Q&A - FAQ
    • How to: Q&A
      • Create predefined answers to a question
      • Add disclaimers
      • Create categories of questions
      • Modify the exported filename
      • Create a question to change the language of a document
      • Send a questionnaire to someone without a ClauseBase account
      • Create questions for repeating list datafields
      • Selecting legal entities & addresses
      • Create a questionnaire using "batch create"
      • Launch other Q&As
    • Leveraging ClauseBuddy Smart Templates in Clause9
  • Import
    • Introduction to importing clauses
    • Uploading clauses
    • Defined terms in Import mode
    • Datafields in Import mode
    • Cross-references in Import mode
    • Assigning folders
    • Conversion process
    • Exporting
    • Stashing intermediate results
    • Tips, tricks & limitations
  • Styling
    • Styling overview
    • Base styling
    • Numbering
    • Definitions styling
    • Enumerations styling
    • Locale styling
    • References styling
    • Page styling
    • Styling of a Binder versus subdocuments
    • Styling: tips and tricks
    • Advanced styling topics
    • Copying headers and footers from an MS Word file
    • How to: styling
      • Using custom fonts
      • Change bullet styling
  • Special functions
    • Introduction
    • Calculations
    • Concepts
    • Conditions
    • Conjugations
    • Content Control Elements
    • Datafields
    • Dates & durations
    • Languages
    • Lists
    • Numbers
    • References
    • Repeating (looping)
    • Special items
    • Text structure
    • Text modification
    • User
    • Q&A
  • Settings
    • Account
    • Preferences
    • Access bundles
    • Favourites
    • Saved searches
    • Saved datafields
    • Styles
    • Default styles
  • Admin
    • General
    • Users
    • User rights
    • Profiles
    • Groups
    • Styles
    • Default styles
    • Attribute models
    • Usage page
    • Custom homepage
    • Global placeholders
    • Access rights
    • How to: admin
      • Adding a new user
      • Disabling a user
      • Managing group memberships
  • Miscellaneous
    • Advanced tips & tricks
    • Typing special symbols on your keyboard
    • Shortcuts
    • Grammar style guide
    • Inserting MS Word files
    • Globo-panel
    • Creating high-quality documents
    • Excel calculations and lookups
  • Integrations
    • Overview
    • Spreadbases
    • E-signing documents
    • Drag & drop integrations
  • For developers
    • Clause9 API
    • Custom functions
    • Example custom functions
Powered by GitBook
On this page
  • Step 1: Create a question that asks for the filename
  • Step 2: Assign the “export-filename” tag to that question
  • Optional step 3: insert dynamic fields in the answer
  • Integrating the current date
  • Integrating other questions’ answers
  • Example
Export as PDF
  1. Q&A
  2. How to: Q&A

Modify the exported filename

PreviousCreate categories of questionsNextCreate a question to change the language of a document

Last updated 1 year ago

By default, when a user exports a questionnaire to DOCX or PDF, ClauseBase assigns a filename that is equal to the filename of the underlying document. In many cases, this will be fine, but in some cases you will want to either dynamically define the filename, or even let the end-user choose the filename.

Step 1: Create a question that asks for the filename

Create a text-based question that asks for the filename. This question can act like any other text-question, e.g. have predefined options, a different answer per language, etc.

You can also subject the question to various conditions, but please take into account that a disabled question will not be taken into account when the software calculates the filename. Note that this means that you can use different filename-related questions, and only active one of them, depending on certain user answers.

Step 2: Assign the “export-filename” tag to that question

In the question’s options, assign tag “export-filename” in the “other tags” section of the Integration settings. (If you do not see this button, then you should contact your administrator, because you have insufficient rights.)

Tip: you may also want to tick the “do not show this question” option. This will cause the question to be active (and thus change the exported file’s filename), but simply not be visible towards the end-user. This can be useful if you want to dynamically calculate the filename, but not let the end-user interfere with this calculation.

Optional step 3: insert dynamic fields in the answer

The question’s answer will become the exported filename — so if the answer to that question is “employment agreement John”, then that piece of text will be used.

Do not insert the filename’s extension (e.g., “.docx.” or “.pdf”), as it is automatically added by the software.

You can, however, also integrate dynamic parts into the filename.

Integrating the current date

You can integrate the current date — shown as 2020-11-22 to allow for easy sorting on your computer’s filesystem —by simply inserting {date} into the answer.

If you would like to format the date, then you can insert the date formatting configuration before the closing curly brace. The options you can use, are identical to the options allowed by @format-date. For example, {date yyyy} would insert the year with 4 digits. Another (quite nonsensical) example to drive the idea home: inserting {date dotted-yy-mm-comma} would insert the the year with two digits, followed by a dot, followed by the month with 2 digits, followed by a dot, followed by a comma.

Integrating other questions’ answers

You can also integrate the answer to other questions, by inserting {identifier} into the answer, whereby identifier refers to the identifier of a certain question.

This identifier is set in the question’s options, in the section Integration.

If you refer to a question that happens to be disabled, then the { … } part will simply be removed.

If you refer to questions that are not text-based (e.g., a duration, date or true/false question) then the software will try to convert that answer into text.

Example

In an employment agreement, you could create a (non-visible) question with a default answer set to Employment contract {first-name} {last-name} {date} , whereby the first-name and last-name are the identifiers of two other questions that ask for the user’s first name and last-name.

As another example, you could have a question that sets the filename to either predefine Addendum to {main-agreement-name} or predefine {main-agreement-name}, depending on whether the user is creating an addendum to an existing agreement, or an entirely new agreement.