This is the documentation for ConfiForms Server/Data Center app
However, this might also work for ConfiForms cloud and in most cases it does. But please see this page to understand the differences between server and cloud versions of the ConfiForms app.
In this tutorial you will learn how to Use ConfiForms Field Definition Rule to reduce a number of choices in a dropdown field.
We will consider 2 setups - one which uses database and another, which uses other form.
This tutorial is aplicable not only to dropdown fields, but also to:
- radio group fields
- advanced dropdowns
- multi-select fields
- checkbox groups fields
Let's start with form design. It will have just 2 fields
- a checkbox field called "includeActiveOnly"
- a dropdown field called "choices" with values loaded from
- a database table
- another form
This means that we will have 2 variants of the same form (or 2 forms you may say)
Let's start with the one which has a dropdown field with the values loaded from a database table
A table we connect as a dropdown source has the following structure
ID | NAME | IS_ACTIVE |
---|---|---|
1 | This one | true |
2 | Another | true |
3 | Some inactive | false |
4 | Quattro | true |
5 | Obsolete | false |
This is stored in a table called "cf_demo_values"
create table cf_demo_values (id INTEGER NOT NULL, name CHARACTER(50) NOT NULL, is_active boolean);