Writing a contact form field text value

Hi All,
I’m trying to write the value of a text field inside a contact form but i can´t access the element.
This is what i have right now
a contact form #contactForm1 (hiddenCollapseElement) with five user input fields.
In the code section, i write $w(‘#contactForm1’). and this is where i would expect to find the reference to the field where i need to set the value but couldn’t find anything to do that.

The pseudocode i need to do is
contactForm1.field1.value = ‘example’;

Thank you all, hope i was clear with this…