Skip to content

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

License

Notifications You must be signed in to change notification settings

programmfabrik/fylr-plugin-editor-field-visibility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 with MaskSplitter EditorVisibilityController. For easydb5-instances use easydb-editor-field-visibility.

installation

The latest version of this plugin can be found here.

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.

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 https://github.com/programmfabrik/easydb-editor-field-visibility. Please use the issue tracker for bug reports and feature requests!