I am using the AddImage control to upload an Image from My Local harddisk. I want to Disable the Button when an Image is not uploaded.
If(IsBlank(UploadedImage1.Image), DisplayMode.Disabled, DisplayMode.Edit)
This checks if the UploadedImage1 is empty. This is not working because there is a SampleImage in the Image Property of the Control.
If(IsBlank(AddMediaButton1.Media), SampleImage, AddMediaButton1.Media)
If I remove SampleImage If(IsBlank(AddMediaButton1.Media), AddMediaButton1.Media) the Button goes to the disable status. But when I now upload an Image the Uploadedimage1 is and stay's empty and the upload button stay's grayed out.
What formula do I have to setup that the Button is grayed-out until a real image is uploaded and when a new image is uploaded the button becomes active and when I click the Button the Image goes to "blank"
I have ask different AI bots for a solution, and none of them worked :-)