How pass default data with openNewEntry?

Hello,

I would like to pass data to pre-populated my form.
I tried this but the data is not visible in the new content.

sdk.navigator.openNewEntry(‘category’, { slideIn: true }).then(({ entity }) => {
(entity as Entry).fields.title = { fr: ‘My default data’ };
});

Do you have an idea? Thank you

Hi @massimo.alvaro22

By reading your code, I think it should work the way you wrote it. However, maybe you could try the following syntax?

(entity as Entry).fields.title.fr = 'My default data'

Another thing I noticed is the use of this apostrophe

`

instead of the plain one

Thank you for your reply. But the changes you are proposing do not change anything.