logged in user read and write page

so on the review page i have added this code

import wixUsers from ‘wix-users’;

import wixData from ‘wix-data’;
wixData.query(“TextData”)
.eq(“iD”. userId)
.limit(1)
.find()
.then( (results) => {
let firstItem = results.items[0];
} )
. catch ( (err) => { let errorMsg = err; } );
$w.onReady( () => {
$w(“#dropdown6”).value = $w(‘#dataset5’).getCurrentItem();

  } ); 

but on the initial form page prior to this one i cannot get the collection to save properly