Go to website
Developers and Admins
Posts related to our API and fields/visibility scripts.
How to set up visibility by script?
Visibility by script allows you to set dynamic visibilities for form fields. You can define if certain fields should be required, editable, read-only or hidden, based on the value of another field or on a decision made. Available functions Flokzu’s API offers the following functions to use in scripts: Flokzu.setHidden( [field] ); //Hides a field Flokzu.setRequired( [field] ); //Sets a certain field as required Flokzu.setEditable( [field] ); //Sets a certain field as editable
Script development in Flokzu
Introduction In Flokzu we know that sometimes it is necessary to provide the forms with intelligence, not only to make complex calculations, but also to validate things, detect errors, and define conditional logic to hide/show fields, among many other possibilities. Bearing this in mind, we have developed a Script Engine that provides predefined functions at the form level to be able to make all kinds of validations, error detections and algorithms using a widely known language like JavaScri
Script to set number of digits after decimal point
By using a script within a calculated field, you can perform arithmetic operations that involve multiple fields in your form. For instance, if you want to multiply fields 'A' and 'B', you can use this script: Flokzu.getFieldValue([[A]]) * Flokzu.getFieldValue([[B]]) While this script works and is valid, it is possible that multiplying numbers with decimals results in an infinite number of decimals. To avoid this, we can modify the function in the following way and limit the number of
What is an 'API key'? How to generate it?
API stands for Application Programming Interface. Once you create an API key in Flokzu, you can then link your account to other apps without the need to share your password or any confidential data. Generating an API key in Flokzu Administrators can create an API Key going to ‘Configuration’ > ‘Advanced’. Once there, they must click on the following button: