
Announcements
I need to perform attachment validation based on checkbox selection field. If checkbox is selected, user should mandatorily upload attachments whereas if checkbox not selected, user not required to upload attachments.
If user clicks on Preview button and if checkbox is checked without any attachments uploaded, it should not allow me to go back to preview screen. Should throw error message.
If checkbox not checked and attachment is uploaded or not uploaded, I should be able to preview the form, Any idea how to achieve this?
Hi @Iantaylor2050 ,
Please try below formula OnSelect of the preview button:
If(!Checkbox.Value, Navigate(PreviewScreen), If(CountRows(AttachmentDataCardValue.Attachments)=0, Notify("Error:at least one file needed"), Navigate(PreviewScreen)))
Best regards,