wixData.get(collectionnamed, collectID) // get org information .then((item) => { console.log('Retrieved item:', item); // Log retrieved item if (item) { item.organizationName = orgname; // update with specific information. item.aboutBlurb = aboutBlurb; // Bio item.websiteUrl = websiteUrl; // URL item.reviewStatus = "Review Required"; // Set Review Status for Item in collection. // Conditional Logic for logoStatus if (item.sponsorLogo && item.sponsorLogo.trim() !== '') { item.logoStatus = "Logo Added: Approval Pending."; } else { item.logoStatus = "Logo Required."; } wixData.update(collectionnamed, item) .then((updatedItem) => { console.log('Updated item:', updatedItem); // Log updated item }) .catch((updateErr) => { console.error('Error updating item:', updateErr); // Log any errors during update }); } else { console.error('Item not found.'); // Log error if item is null } }) .catch((err) => { console.error('Error retrieving item:', err); // Log any errors during retrieval });
You are officially signed up!
Thanks for partnering with us and expect a confirmation email in your inbox shortly.
Uh-oh!
Something went wrong.
Please try refreshing the page or attempting your action again in a moment.
If the issue persists, reach out to admin@ogcreatives.com.