Dear @Amar,
notice that I added two data labels one I gave it ID "AttachmentDetails" and the other one I gave it ID "IsValid" and the text is 0
now we need to add a rule:
Rule Config
First line is to transfare 0 to the IsValid Data lable and the attachment control to the AttachmentDetails Data lable:
now when we transfare the attachment control to data lable we can see its details
Second Line:
I added rule to check if my AttachmentDetails Data Lable contains ".xlsx" and to check that is not empty Plus to check that my attachment control is not empty either
Third Line: Just to show msg if the attacment file is Excel
Fourth Line: transfares 1 to "IsValid" Data Lable, this is just to ignore the second if condition as long as we've added a valid file.
Fifth Line: here we check if the file is not valid and the attachment control is not empty
Sixth Line: to show warning Msg
Seventh Line: we just check the attachment control to empty it as long as the file is not valid
Test:
how the view looks before action:
I added a word document:
Added Valid faile:
wish it helps :)
Regards,