Lunatic icon indicating copy to clipboard operation
Lunatic copied to clipboard

Add arbitrary option for checkboxOne

Open Grafikart opened this issue 9 months ago • 1 comments

Issue

On some form we want to add an option to allow an additional answer for specific field

Solution

There is not lunatic modelisation for this feature so this PR is a proof of concept and spec. The field is triggered adding extra properties on the "options" field :

{
	"id": "kmort6x9-QOP-kmorue9d",
	"label": {
		"value": "\"Autre\"",
		"type": "VTL"
	},
	"response": { "name": "NATIO1N5" },
+	"detail": {
+		"label": {
+			"value": "\"Préciser : \"",
+			"type": "VTL"
+		},
+		"response": {
+			"name": "NATIO1N5DETAIL"
+		}
+	}
}

Render

image

Limitation

Since it's a POC it's only applied on CheckboxOne to see if the modelisation fit the need.

Fix #204 Fix #951

Grafikart avatar May 23 '24 11:05 Grafikart