I have a weird API endpoint where there are two properties for the same field.
{
id:"123",
title: {
rendered: "Hi, i'm rendered",
raw: "<p> Hi, I'm the title</p>"
}
in the Edit form, I have a Component like so:
<TextInput
source="title.raw"
defaultValue="title.rendered"
validation={{ text: true }}
validate={required()}
/>
But that's not working. How can I get the title.rendered to show up as default value but have title.raw be what's sent back to the endpoint/ server?