Auto height for the JSON schema form is a feature request that we haven't been able to prioritize yet I'm not aware of any workarounds to manually setting the fixed height
I wasn’t able to get it to work on its own, but when placed within a stack, this CSS should work:
/* For the JSON Schema Form component (not the Retool native form)*/
/* Ensure the form expands to fit its contents */
[class*=“JSONSchemaFormWidget”] {
flex: 0 0 auto;
}
/* If the parent container doesn't scroll*/
/* Fix overflow scroll issue */
[data-testid*="ContainerWidget_YourContainerName"] > section, [data-testid*="ContainerWidget_YourContainerName"] > section > div {
overflow-y: scroll !important;
}
/* */
/* */
/* */
/* If you're using the native Retool form... */
/* Ensure the form fits its contents */
[class*="_retool-FormWidget"] form {
height: auto !important;
}
/* This is weird and different from JSON schema form */
[data-testid*="RetoolWidget:FormWidget2"] > div > div > div {
flex: 0 0 auto !important;
}