Hi everyone,
I have the following set up, but for some strange reason its hit and miss.
On my attachment control I want to allow only image file types to be uploaded.
I have created a label (LblAttachmentWarning) and its visible property is set to:
If(Not(".img" || ".IMG" || ".png" || ".PNG" || ".gif" || ".GIF" || ".jpg" || ".JPG" in Concat(DataCardValue23.Attachments.Name,Name&",")),true)
and the next buttons visible property on that screen set to:
!LblAttachmentWarning.Visible
This seems to randomly work, sometimes I can upload a .GIF and the next button is visible and I can sometimes upload the same image and the label stays visible, so the next button is invisible, is there a better way of achieving my goal or is there an issue in my code?