# I can't access the form fields to modify them

**URL:** <https://forum.radsystems.io/t/i-cant-access-the-form-fields-to-modify-them/1308>\
**Category:** PHPRad Vue\
**Created:** [January 9, 2023, 12:51pm UTC](https://forum.radsystems.io/t/i-cant-access-the-form-fields-to-modify-them/1308 "2023-01-09T12:51:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rha](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/r/cdc98d/32.png) [@rha](https://forum.radsystems.io/u/rha)\
**Post date:** [January 9, 2023, 12:51pm UTC](https://forum.radsystems.io/t/i-cant-access-the-form-fields-to-modify-them/1308/1 "2023-01-09T12:51:44Z")

</div>

Hello  
I am using “Laravel/Quasar”, I want to modify the “data” field when submitting a form in the “beforeSubmit” event.  
I tried using “page.data” and “formData.data” but it doesn’t allow me to modify the value of the “data” field.  
function beforeSubmit(){  
page.data = “123”; //It doesn’t work  
formData.data = “123”; //It doesn’t work  
return true;  
}  
How can I access the form fields in the “beforeSubmit” event to modify them?  
Thanks

---

<div class="post-metadata">

**Author:** ![rha](https://forum.radsystems.io/letter_avatar_proxy/v4/letter/r/cdc98d/32.png) [@rha](https://forum.radsystems.io/u/rha)\
**Post date:** [January 9, 2023, 9:32pm UTC](https://forum.radsystems.io/t/i-cant-access-the-form-fields-to-modify-them/1308/2 "2023-01-09T21:32:47Z")

</div>

Excuse me, I was wrong. It is possible to access with “formData.data”.
