Blocworx Documentation
  • Welcome to Blocworx
  • The structure of Blocworx
    • What is a project?
  • Getting Started
  • How To's
    • How To's
      • Get Started: Build a Simple Module
      • Build a simple invoicing system
  • Page
    • Page Overview
      • Page Sections
      • Modules in Pages
      • Sub Pages
      • URL Links
    • Edit a Page
    • Manage Pages
  • Module
    • Module Overview
      • Module Sections
      • Blocs in Modules
      • Automated Reports
    • Module Editor
      • Add, remove and move Sections and Blocs
      • Edit Module Location & Icon
      • Edit Module Details
      • Import from another Module
      • Delete a Module
      • Make this module available to child instances
    • Manage Modules
  • Bloc
    • Bloc Overview
    • Bloc Front End Overview
      • Data Display
      • Advanced Reports
    • Bloc Editor Overview
    • Pdf & Doc File Template Builder
    • The Blocworx Process Flow
    • Edit Templates
  • Bloc Editor
    • Bloc Form Builder Preview
    • Fields, Tools and Charts
      • Standard Input Fields
        • QR Code
        • Text
        • Large Text Field
        • Checkbox
        • Multi Button
        • Dropdown from List
        • Date/Time Selector
        • Bluetooth (Beta)
        • Button
      • File & Image Fields
        • File Field
        • Multi File Field
        • Image URL Field
      • Linked Data Selection Fields
        • Dropdown from Bloc
        • Autocomplete
        • Radio Buttons From Bloc
        • Checkboxes From Bloc
        • Link Data Field
      • Content Editing Components
        • HTML Field
        • Separator Field
        • Content Editor For User (WYSIWYG)
        • Content Editor (WYSIWYG)
      • User Based Components
        • Create User Pop Up
        • Logged in Users Information
        • User Select Field
        • Signature & Authentication
      • Dynamic Output & Variable Components
        • Time/Date Difference
        • Auto Generate Field
        • Plain Data Field
        • Maths Field
        • Field Merge Builder
        • Label Field
        • Barcode Generator
      • Third Party Integration Components
        • Blocworx Gateway
        • Bartender Integration
        • File Builder
        • Mindee API
      • Charts, Results & Data Feeds
        • Local Data Doughnut Chart
        • Advanced Chart Set 1
        • Results Box
      • Sub Blocs, Tools & Components
        • Submit Button
        • Sub Bloc
        • Cross-Bloc Data Manipulator
        • Bloc List
        • Mail Alert
        • Calendar & Resource Planning
    • Field Create, Edit, Parameters, Rules and Actions
      • Creating a Field
      • Editing a Field
      • Field Parameters
        • Choose hidden options for this field
        • Mobile Configurations
        • Rule and Actions Based Parameters
        • Main Field Parameters
        • Conditional Value
        • Set Character View Limit
        • Conditional Visibility
        • Dynamic Data Update (Update Value Based On Another Date Field)
        • Field Names in Different Languages
        • Manage Field Actions
        • Load Data from Another Bloc
      • Field Rules and Actions
        • Can not be empty
        • Must Be Equal To
        • Cannot Be Equal To
        • Must be Between Two Values
        • Must be at least X number of characters
        • Must be exactly X number of characters
        • Item must have been entered elsewhere
        • Item must not have been entered elsewhere
        • A specific value is required elsewhere
        • A specific value cannot be present elsewhere
        • Populate another local field with data from elsewhere
        • Populate another local field with total from elsewhere
        • Max Allowed Duplicates
        • Can only be numbers/integers
        • Keep Data for Next Entry
        • Must be Certain Format
        • Cannot be Equal Another Local Field
        • Must be equal to another local field
        • Populate another local field with part of this field
        • Populate local field with data from another local field
        • Must have matching equivalent data in another form
    • Bloc Settings
      • Main Bloc Settings
      • Functional Behaviour Settings
      • Bloc Layout and Visibility Settings
      • Data Display Settings
      • User Restricted Data Settings
      • Manage and Build Templates
      • Bloc, User and Role Access
      • List of available Field Slugs
      • Manage Bloc Scheduler
  • Manage Data
    • Manage Data Overview
    • Raw Data and Counting Reports
    • Look Up/Edit Data
    • Find and Replace Data
  • Administration
    • Admin & Development Overview
    • Manage Users
      • Profile Filter
    • Roles & Permissions
      • Roles
      • Permissions
    • Manage Mail Alerts
  • App Settings
    • Sign In With Google
    • Timeout Setting
  • No Code Development
    • Manage Blocworx Instances
      • Parent and Child Instances
    • Edit Theme
    • Manage Modules
    • Manage Pages
    • Extra and Beta Features
Powered by GitBook
On this page
  • Create Mockup
  • Show Export Links in Data Results
  • Upload Template
  • Template List
  • Using the Template Builder: Tips & Tricks

Was this helpful?

  1. Bloc Editor
  2. Bloc Settings

Manage and Build Templates

PreviousUser Restricted Data SettingsNextBloc, User and Role Access

Last updated 22 days ago

Was this helpful?

The Manage and Build Templates section is where you can upload your .docx templates for exporting.

To summarise, you can populate and export a word or pdf file with images, data lists and content and field values simply by referencing the field slug, e.g. a field called My First field would be filled as ${my_first_field} in the word doc.

Create Mockup

By Clicking "Generate Mockup" you can get a .docx file that contains all your field slugs.

Show Export Links in Data Results

This is a feature that allows you to export the file straight from the Data results.

Upload Template

You can upload as many templates as you like and they will be available to choose from in the front end of the bloc.

Template files must be .docx files

Template List

Once your templates are uploaded, they will appear in the Template List where they can downloaded or deleted.

Using the Template Builder: Tips & Tricks

Standard field value population

By using the field slug in this format on the document the value will replace this field: ${my_first_field}.

WYSIWYG for User Fields

These fields contain html and this html will correctly convert and populate your word file.

Image and File Fields

Images will successfully appear in the word doc. You can also adjust the image size by adding numbers into the variable, for example: ${my_image_field:200:100} where 200 is the width and 100 is the height.

Digital Signatures

Digital Signatures will successfully populate into the file.

Sub Bloc and Results Box Fields

Having a field in the child Sub Bloc that is the same name as a field in the parent bloc can cause the system to not understand which one to use, and a result either the table of data may not appear, or the parent field will be blank. It is possible to distinguish between the two by simply adding [parent] to the field slug in the doc file. E.g. ${[parent]my_first_field} By doing this the system will be able to distinguish between the two fields even if they have the same name.

There is also a second way these can be distinguished. You can add the field slug of the Results Box field itself before the field slug that you are loading. E.g Supposing you have a Results Box field called Invoice Line Items and its slug is invoice_line_items. You can be explicit about what field you are loading by adding this slug followed by a hyphen, in this example the Model Number might be model_number as part of a line item. ${invoice_line_items-model_number}

Euro auto formatting

If you append [euro] to a field it will format it to a euro format e.g. ${[euro]total_cost} , if that value was 234 the output will be €234.00

Field Slug Population Feature

You can actually insert field slugs in the value of a field in a bloc and if you append [blcx_slug_population] it will process these first before it does all the fields without this. It's a way to put field slugs inside field slugs.

An example might be where you want a different data set entirely being populated into the one place. Example, some invoices want a Finance Company address, and others want a Customer address then using existing Blocworx features you could populate a field like "address" with actual field slugs So the address field could have a value: "${finance_company_name}, ${finance_company_address}" In a different situation the address field might have a value: "${customer_name}, ${customer_address}"

In your template if you do the following ${[blcx_slug_population]address} It will populate the value, e.g. ${customer_name}, ${customer_address} These populated fields will now get processed normally as if they had been put in the template manually.

Dynamic Line Breaks

If the value in your field has [BLCX_LINE_BREAK] it will automatically create a line break in the value. E.g. if you have a merge field that results Hello[BLCX_LINE_BREAK]World, it will appear in the template as Hello World This also works with the dynamic field slug population feature described above.

Conditionally Show content if field exists or not

You can decide to show something in the doc based on whether another field has a value or not ${[blcx_if]-saying_hi[thenshow]='Hi'} in this example, if saying_hi is there, and is not equal null or N/A then it will show a Hi. If its not there, or if its there but equal N/A or null, it won't show anything.

There is an advanced feature within this overall feature, where you can display lists of data in a table if the field is either a or a . It displays the data from the these external blocs instead of the data in the main parent bloc that you are exporting the document from. It works by using the filters you have set out in those fields as a means of finding the data to display. You can see this in action in this .

Sub Bloc
Results Box
How to Video from 18 minutes onwards
Click here for an overview of this feature.