uploadedFile.tooltip = $w("#inpPictureTitle").value; $w("#tlp0").text = $w("#inpPictureTitle").value; // works for display of tooltip $w("#img0").src = uploadedFile.url; // displays uploaded picture correctly currentItem.piece0 = uploadedFile; // seemed to work saves to file in update but does not save tooltip
Question - How can I store the inputted Picture Title text as the tooltip when writing an uploaded fie to an image field in a collection? Above code works except I can't get that tooltip field to save. Newbie guessing on how to set up that first statement. Please help. Thank you. Amy
I know what you mean. That's why I was going crazy trying to allow the artists to change the alt and tooltip text associated with the image. Anyway, used text fields in the database instead and it works great in the maintenance screen. Problem is - now I have to custom code the dynamic item page that shows the gallery for each artist because I deviated from wix coding for storing info about images.
Question - should I be able to add custom code to a dynamic item page?
https://www.wix.com/corvid/reference/$w.Image.html#alt