How do you connect an input element to multiple databases to show default text?

I have created a form using input elements and connecting the input elements to the individual fields within the dataset that I want the data to be recorded into once the user selects submit. I have three fields that I want to auto-populate based on content in a different database.

$w.onReady(function () {
$w(“#myHANDLE”).value = $w(‘#myIdentity’).getCurrentItem().myHandle
$w(“#myID”).value = $w(‘#myIdentity’).getCurrentItem().myid
$w(“#myVERIFY”).value = $w(‘#myIdentity’).getCurrentItem().myverify
});
For reference, the primary database connected to the form is called Page, and the secondary database that I would like to pull the pre-filled information from is named myIdentity. I have checked to make sure that the characters match exactly including spacing and case.

Please let me know if I am missing a step or if anyone has any suggestions! Thank you so much!

I’m not sure I understand your question. I only see one dataset in the code you posted.