An open API service indexing awesome lists of open source software.

https://github.com/programmfabrik/fylr-plugin-editor-field-visibility

Custom Mask Splitter to show and/or hide fields in Editor, depending on other fields values. Only for fylr!
https://github.com/programmfabrik/fylr-plugin-editor-field-visibility

controller editor fylr visibility

Last synced: 4 months ago
JSON representation

Custom Mask Splitter to show and/or hide fields in Editor, depending on other fields values. Only for fylr!

Awesome Lists containing this project

README

          

> This Plugin / Repo is being maintained by a community of developers.
There is no warranty given or bug fixing guarantee; especially not by
Programmfabrik GmbH. Please use the github issue tracking to report bugs
and self organize bug fixing. Feel free to directly contact the committing
developers.

# fylr-editor-field-visibility
Custom Mask Splitter to hide fields in Editor, depending on another fields value. Right now, the triggerfield must be a custom-data-type-dante or a boolean-field

This is a plugin for [fylr](https://documentation.fylr.cloud/docs) with MaskSplitter `EditorVisibilityController`.
For easydb5-instances use [easydb-editor-field-visibility](https://github.com/programmfabrik/easydb-editor-field-visibility-plugin).


## installation

The latest version of this plugin can be found [here](https://github.com/programmfabrik/fylr-editor-field-visibility/releases/latest/download/EditorFieldVisibility.zip).

The ZIP can be downloaded and installed using the plugin manager, or used directly (recommended).

Github has an overview page to get a list of [all release](https://github.com/programmfabrik/fylr-editor-field-visibility/releases/).

## configuration

This masksplitter can be configured:

### Mask options

* Name of the observed field, which triggers the visibility of fields
* JSON-Map about the fields to hide. See example below
* JSON-Path with which the JSON-Map starts

##### Example JSON-Config

~~~~
{
"capture_journey": {
"value": "http://uri.gbv.de/terminology/prizepapers_journey_type/f005efa8-7340-4b45-bb52-77ce42a42e25",
"fields": ["journey.journey__mehrfach.field1", "journey.journey__mehrfach.journey__mehrfach__mehrfach2.bool"]
},
"forced_journey": {
"value": "http://uri.gbv.de/terminology/prizepapers_journey_type/db0ecf20-96ca-45bf-b0c2-eb2097adf1f0",
"fields": ["journey.place_end_intended", "journey.capture", "journey.journey__mehrfach.journey__mehrfach__mehrfach2"]
},
"journey": {
"value": "http://uri.gbv.de/terminology/prizepapers_journey_type/94b943b7-ee9f-4818-8b8e-d7d4beef58fb",
"fields": ["journey.place_end_intended", "journey.capture", "journey.journey__mehrfach.journey__mehrfach__mehrfach2.bool", "journey.journey__mehrfach.journey__mehrfach__mehrfach2.sex"]
}
}
~~~~

## sources

The source code of this plugin is managed in a git repository at . Please use [the issue tracker](https://github.com/programmfabrik/easydb-editor-field-visibility/issues) for bug reports and feature requests!