I am working on a form and I wanted to enable auto...
# compose
b
I am working on a form and I wanted to enable autofill for a birthdate text field. But autofill BirthdateFull type is not working. However other types like BirthdateMonth,BirhtdateDay and BirthdayYear are working. Is there anything I am missing? Any help or way arround is greatly appreciated:)
3
Here is my code incase you're wondering
Copy code
OutlinedTextField(
                value = birthday,
                onValueChange = {
                    birthday = it;
                },
                modifier = Modifier
                    .fillMaxWidth()
                    .autofill(
                        listOf(AutofillType.BirthDateFull),
                        onFill = {
                            birthday = test;
                        }
                    )
                    .onFocusChanged { focusState ->
                        dateValidator.onFocusChange(focusState.isFocused)
                        if (!focusState.isFocused) {
                            dateValidator.enableShowErrors()
                        }

                    },
                keyboardOptions = KeyboardOptions(
                    keyboardType = KeyboardType.Ascii,
                    imeAction = ImeAction.Next
                ,autoCorrect = true
                ),
                label = { Text("birthday") },
               placeholder = { Text("MM/DD/YYYY") }
            )