File Upload Required Field

piskie
Posts: 25
Joined: 2010-09-03 00:19

File Upload Required Field

Post by piskie » 2010-09-03 00:24

I have been using Interakt extension for some time and currently have ADDT with DW CS3. My requirement is to make selecting a file in the FileField compulsory so that the form cannot make a Db entry cannot be made without uploading and renaming a file.

I would be very grateful for any assistance.

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: File Upload Required Field

Post by Fred » 2010-09-03 10:33

Isn't it as simple as making the field a required field when setting the form verification on the form?

piskie
Posts: 25
Joined: 2010-09-03 00:19

Re: File Upload Required Field

Post by piskie » 2010-09-03 12:11

Thanks for the suggestion Fred. However I can find Required Field Setting facility for other Fields but not for a FileField. Hence my problem.

User avatar
Fred
Site Admin
Posts: 491
Joined: 2010-02-15 12:10
Location: Armagh, Northern Ireland
Contact:

Re: File Upload Required Field

Post by Fred » 2010-09-03 19:05

Interesting, wonder why they removed this from ADDT. In the old Interakt version I can set a file field to be required.
Sorry I used the wrong wording. it is not "verification" but "validate".

What you could do is to add a "Throw Error" SB to the field and apply it to the Update and Insert transactions of the type "Before"

Post Reply