Validate file upload field in multi-page

franru 16 Apr, 2018
Hello everyone,

He tried many times to solve this problem but I do not get it, I also reviewed the forum many times but I also do not find a solution.
I need to make a multi-page form that has a file upload field on the first page, that this field is mandatory and that only pdf files can be uploaded. My idea is that the first page validates if it is a pdf file and if it is not, that you can not go to the second page of the form, is this possible?

Thanks in advance.

regards
healyhatman 17 Apr, 2018
Well yes of course.

Make the File Field required, with only pdf in the Extensions field.
On the setup tab, Validate Data-> fields setup -> filefieldname/required:Message
On the setup tab, for your upload files action, "Allowed extensions list" have only pdf.
franru 17 Apr, 2018
Thank you very much for the reply.

I forgot to comment that I am using Chronoforms v5.
Is this solution applicable for this version?

Thanks.
healyhatman 17 Apr, 2018
Doubt it., but I have no idea. Have to wait for one of the staff (GreyHead or Max) to help you
franru 17 Apr, 2018
OK, thank you very much.

Greetings.
GreyHead 17 Apr, 2018
HI franru,

The same should work in CFv5 - though some of the names used are a little different.

Bob
This topic is locked and no more replies can be posted.