Hey Tali,
There are a few flaws in your code.
If you want to save some info when a user clicks a button, you should use the onClick method instead of onMouseIn.
The code saving the item (or doing any action triggered by the click) must be inside the onClick handler.
Here is a snipped you could use:
import wixLocation from ‘wix-location’
import wixData from ‘wix-data’
let url = wixLocation.url
$w.onReady(function() {
$w(‘#button30’).onClick((event, $w) => {
const ID = $w(‘#text89’).text
let toInsert = {
Vote: ID,
Source: url
}
wixData.insert('Signups', toInsert).catch(err => console.log(err))
})
})