Buy Now
Sign in

Validate file upload field in multi-page

franru , April 16 at 19:22
F
franru
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
H
healyhatman
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.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
F
franru
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.
H
healyhatman
Doubt it., but I have no idea. Have to wait for one of the staff (GreyHead or Max) to help you
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
F
franru
OK, thank you very much.​
Greetings.​
GreyHead
HI franru,
The same should work in CFv5 - though some of the names used are a little different.
Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much