Comment on page
Dropdown from Bloc
The Dropdown from Bloc field is a list of values from another bloc (or even the same bloc if required). This data is then presented as dropdown select field. This is commonly used to fetch master or dynamic lists that we want to manage elsewhere. For example, we might have a dropdown of data of customers where the customer information is coming from a CRM system you might have built as another module elsewhere in Blocworx.
A typical Dropdown from Bloc field where the data in the dropdown is coming from Bloc 2
Note: This field is distinguishable from the Dropdown from List field field. You use the Dropdown from List field when you know you will never be changing the data in the dropdown field (for example list of counties in your country). Whereas the Dropdown from Bloc field is used for dynamic, changing, flexible and filtered data.
An important feature of this field is that you can get data based on certain values in your form. For example, you might have another bloc with a list of customers, each customer having its own category, like "High Priority", "Low Priority". In the bloc containing this field you might only want a dropdown of customers who are categorised as High Priority. In this case you can have another field in your bloc with the value "High Priority" and this field can then behave as the field that filters the data to only get High Priority customers.
Here is the bloc that contains the data we are trying to retrieve
In this example, the "Customer Type" field is being used to filter "Data from Bloc 2" to only show High Priority Customers
And now we only show Low Priority customers as the Customer Type field has changed.
Hint: To trigger this filter the rules in the field set to filter the data must be triggered. One issue with this is, sometimes you may want to filter immediately using the value in a plain data field when the bloc loads. To filter immediately, select the option: "Trigger rules on first initiation of the field"