Hi All, I am getting error Operation cancelled by user code. TypeError: c.uploadFiles is not a function
I have simple repeater where I have document field. I am uploadinf file and saving it to DB.
Hi All, I am getting error Operation cancelled by user code. TypeError: c.uploadFiles is not a function
I have simple repeater where I have document field. I am uploadinf file and saving it to DB.
Please post your code, if possible, post your site URL so people can test it
$w . onReady ( function () {
$w ( “#repeater1” ). onItemReady (( $item , itemData , index ) => {
$item ( "#button2" ). enable ();
$item ( "#button2" ). onClick ( **async** ( event ) => {
console . log ( 'In Save' )
await $item ( ‘#dataset10’ ). save ();
session . setItem ( ‘Errormessage’ , “Data Saved” );
wixWindow . openLightbox ( “Error” )
});
});
})
This code does not seem correct.
Can you show me the elements in your page?
All elements are connected to collection. I am just uploading SHA and trying to “Save”
It was working alright but something happened all of sudden
basically I am fetching this data from collection and after update saving back to collection. This is under repeater as there are many records . I am updating only one at time though