Why #datepicker and #uploadbutton unable input to dataset ?

export function dataset1_ready() {
//Add your code for this event here:

$w( "#dataset1" ).onBeforeSave( () => { 

$w( “#dataset1” ).setFieldValues( {
“mobil” : $w( “#text155” ).text,
“statusSewa” : $w( “#dropdown1” ).value,
“pernahAtauBelumPernah” : $w( “#radioGroup2” ).value,
“namaLengkap” : $w( “#input9” ).value,
“tanggalSewa” : $w( “#datePicker3” ).value,
“eKtp” : $w( “#uploadButton1” ).value,
“idCard” : $w( “#uploadButton2” ).value,
“stnk” : $w( “#uploadButton3” ).value,

} ) 

} );
}

Hi :raised_hand_with_fingers_splayed:

You can’t use the value method to save the image to the database, the value method returns a list of files that are pending upload , the the actual URL of the files, you need to upload them first and get their URLs.

You can take a look at an example on how to upload multiple images here:

Regarding the date picker, I have no idea why, perhaps the field key is typed incorrectly :thinking:

Hope this helps~!
Ahmad