Detecting input field inside Matomo

Currently, I use cookies detection inside Matomo and it works perfectly.
Is it possible also to pull out also filled in input value like Full Name? Is there any Javascript example to do this using Custom dimensions.

URL is the following:
https://plugins.matomo.org/CustomDimensions

Input field is used like id=“fullname” type=“text” name=“fullnamefield”