Hi there,
I have an arraye of multiple formats :
Set(formats,[".png",".jpg","jpeg",".svg"];
And I want to check if the attachment formate type that uploaded by user is in these formates.
I tried this code but does not work:
Set(formates,[".png",".svg",".jpg",".jpeg"]);
if(Concat(DataCardValue29.Attachments.Name,Name&",") in formates , Notify("correct"),Notify("incorrect"));
Solved! Go to Solution.
Hey,
you can try this below code which may solve your issue.
Set(formates,["jpg","png"]);
If(Last(Split(First(DataCardValue2.Attachments).Name,".")).Result in formates,"Correct","Not Correct")
Thanks
Hey,
you can try this below code which may solve your issue.
Set(formates,["jpg","png"]);
If(Last(Split(First(DataCardValue2.Attachments).Name,".")).Result in formates,"Correct","Not Correct")
Thanks