Greetings,
I’m trying to allow loggedin users pull their data from their membersprivate data and save to another field in a different collection. This is my code but seems the data is not being retrieved. #dataset22 is connected to Membersprivateddata(read only). Any help will be appreciated.
export function button300_click(event) {
let phone = $w("#dataset22").getCurrentItem().mainPhone;
if ($w("#input9").value > 1 ) {
$w("#dataset21").setFieldValues({
"status": 'Pending',
"phoneNumber": phone,
});
$w("#dataset21").save();
//Add your code for this event here:
}}