Submit a ticket
Welcome
Login

Section Rules (BETA)

Section Rules (BETA)

BETA FEATURE!
We're excited to introduce a new feature, but please be aware that it's currently in beta testing. This means we're actively working to refine and enhance its functionality. Your feedback and insights during this phase are invaluable in helping us make it even better.
Feel free to contact our support team (support@oneflow.com) if you're interested in participating and testing out this feature. We're here to assist you!

Exploring section rules within your documents and templates offers extensive customization options, providing your documents with a unique touch. Section rules allow you to selectively display or conceal specific sections based on rules controlled by triggers.

Create a template group to get started with section rules

To enable this feature, you need to activate a template group on your template. If you haven't used a template group before, you'll have to create a new template group and add data fields to decide which sections to hide or show with different sectional rules. To get started, you need to create a new template group.

  1. Go to Admin >  Extensions > Enable Template Groups.
  2. Click on Details >"+ Add a template group"
  3. Give the template group a name.

NOTE
If you are using an integration you do not need to create e new template group. You can use the existing template group connected to the integration. 

Add data fields to your template group

Once you've established your template group, the next step is to incorporate various data fields, these data fields will control you sections.

  1. Activate the newly created template group.
  2. Scroll down and locate the template group you've just made, then click on its name.
  3. Navigate to the Data Fields tab.
  4. Lastly, create the data fields that will serve as the rules governing your sections.

FANTASTIC! 
You've successfully created your first data field!

Add a template group to a template

It is time to work wonders with adding section rules to your templates. 

  1. Go to Templates > Open a template.
  2. Go to Templatesettings > Open General > Choose the template group.

Create section rules to you template and documents

To begin with a simple trigger, we'll use a checkbox field as an example to demonstrate how to hide or display a section in your template:

  1. Click on the + to add a new form section
  2. Click on Add Field > Fill in a field namne  > choose "Checkbox" as type. 
  3. Select the data field that you want to set as a trigger for the section rule.
    In this example, we have a data field called "Introduction text" that you will be seeing in the following screenshots.
  4. Don't forget to save.

Now, for the section where you want to implement rules, click on the gear icon located to the right of the section, and then select Section rules

This will provide you with the option to determine the action when you click on the checkbox. In this case, we'll use it to control the visibility of the "Introducing Text" section. Here's how we configured it:

After you've configured the rule to your satisfaction, click on Save rule. You'll notice that the section is now grayed out, indicating it's hidden. When you check the checkbox, the section will be displayed once more. This is just one of the many ways you can get creative with section rules!

Section rules with an Integration

It's possible to use section rules while your template is linked to an integration. Depending on the integration you use, there are different ways to set this up.

NOTE 
The requirement for using section rules is having a template group. To link a template to the integration you have, you need to activate that template group.

Option 1 - Use data fields that you do not utilize in the template

If you are certain there are one or more data fields that you do not use daily, perhaps fields left empty in your integration, then you can use these for section rules.

Option 2 - Create custom data fields

Create custom data fields in your integration system that you then use for section rules in the template. It's important to note that some integrations are limited and do not support the ability to create custom data fields. In this case, Option 1 might be more suitable for you.

Getting started with section rules + video


Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.