Now, I get value from dataset using query from wix-data but I can load value on 2 signature input and upload button.
This is my code:
wixData . query ( ‘ArtistMaster’ )
. eq ( ‘artistId’ , currentUser.id )
. find ()
. then (
success => {
var artistMaster = success.items [ 0 ];
$w ( ‘#bio’ ). value = artistMaster.bio ;
$w ( ‘#realName’ ). value = artistMaster.realName ;
$w ( ‘#workEmail’ ). value = artistMaster.workEmail ;
$w ( ‘#workPhone’ ). value = artistMaster.workPhone ;
$w ( ‘#address’ ). value = artistMaster.workAddress ;
$w ( ‘#idCardNo’ ). value = artistMaster.idCard ;
$w ( ‘#artistSignature’ ). value = artistMaster.authorSignature ;
$w ( ‘#idFrontPhoto’ ). value = artistMaster.idCardFrontPhoto ;
$w ( ‘#idBehindPhoto’ ). value = artistMaster.idCardBehindPhoto ;
},
error => {
console . log ( error );
})
. catch (
error => {
console . log ( error );
})
. finally (
() => {
});
It is warning error at .value. With error content is “Cannot assign to ‘value’ because it is a read-only property”
Please help me load data on 2 controls
Thank you so much