Here we present a very simple click trigger.
and set the sign's ID field to 'triggerResult'
into the script field of the button.
let textSign = parcel.getFeatureById('triggerResult')
feature.on('click',e=>{
textSign.set({text:'Click!'})
})
Quick refresh and there you go!
The first line
let textSign = parcel.getFeatureById('triggerResult')
finds the sign you created and inserts it in a variable textSign.
The next section handles the click event.
feature.on('click',e=>{
textSign.set({text:'Click!'})
})
It simply listens to a click, and once the button is clicked, it tells the sign to show "click!".
Yes! You can copy paste this script into the script field of your vox-model and it will work!