diff --git a/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/SelectLine.kt b/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/SelectLine.kt index e3e9ad2..5117663 100644 --- a/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/SelectLine.kt +++ b/xs2awizard/src/main/java/com/fintecsystems/xs2awizard/form/components/SelectLine.kt @@ -40,7 +40,9 @@ fun SelectLine(formData: SelectLineData) { is JsonArray -> { textFieldValue = TextFieldValue(formData.options.jsonArray[index].jsonPrimitive.content) - formData.value = JsonPrimitive(index) + + // The backend expects strings + formData.value = JsonPrimitive(index.toString()) } is JsonObject -> { textFieldValue = TextFieldValue(