Hi
I am new to Wix and am encountering a weird error that is prevention a collection data entry.
I have a change event attached to an address input. The intention with this is to store the address I have as both a string and an address (I display the string value for each collection item as part of a repeater elsewhere in my site).
With the below code I keep getting a very weird “setFieldValue is not a function” on the second last line of code here and as a result the input to the collection is not working:
export function addressInput2_change ( event ) {
**let** textAddress = String ( $w ( "#addressInput2" ). value );
$w ( "#dataset3" ). setFieldValue ( 'addressString' , textAddress );
$w ( "#dataset3" ). save ();
}
I can’t seem to see any other posts that deal with this but would love to know what I am doing wrong? Is there an actual error/is this not best practice/any other suggestions?
Thank you!