Value not displayed from a Groovy Script in Form

Hello

I have a question about a groovy script and a form.

I try to update a value of a variable in the Pool variable and display the value in the form.

I've written a groovy script in the input connector of the selected form :

ndf.statutNDF = "En attente"

And in the form, i've added a text block with :

{{ndf.statutNDF}}

But the value does not appear.

Please could you help me ?

Best regards