![]() |
Force All Fields To Be Required On Upload Form? Can anyone help me out on this? I'm using the gallery so people can up load images of their cars, but I want to force them to fill out all fields on the upload and quick upload form. For example I want to make these fields required: Title (which I changed to Make & Model) Description Keywords If the user dose not fill them out then I dont want the form to allow the imge to be uploaded and it give the user a warning saying "All required fields have not been filled out". Thanks for any help anyone can offer! |
Re: Force All Fields To Be Required On Upload Form? If you'll look in your /forum/includes/functions_gallery_imageedit.php file for this: Code: Content visible to verified customers only.Code: Content visible to verified customers only. |
Re: Force All Fields To Be Required On Upload Form? Tight!!!!!! .... Thank you so much ! |
Re: Force All Fields To Be Required On Upload Form? OK I added it and but now when I went to test it, even if I fill out all the fields its giveing me the error: "A required field was missing. Please be sure to fill out all fields" Here is the link to my upload form: http://www.automotivegalleries.com/g...load.php?&c=29 I also have added additional fields using the custom fields in the CP. The Three fields I added where "Make" and "Model" and "Modifications" as its and automotive site. Here is the code I added to the functions_gallery_imageedit.php file: Code: Content visible to verified customers only.I think I messed something up as I'm not googd at php at all. |
Re: Force All Fields To Be Required On Upload Form? Sorry about that. Try changing the three places you see $image in that code to $imageinfo and it should work then. |
Re: Force All Fields To Be Required On Upload Form? Here is the code I changed it to: Code: Content visible to verified customers only.Could it be due to the custom fields???? is the code case sensitve ? IF you go here and try it for your self you'll see what I mean: http://www.automotivegalleries.com/g...upload.php?&c= |
Re: Force All Fields To Be Required On Upload Form? There was no reason to change 'title' and 'description'. Change those back to the exact code I posted and it should work fine. |
Re: Force All Fields To Be Required On Upload Form? I just looked at the page source code and noticed that the additional custom fields are displayed a "field2", "field3": Here is the code: Code: Content visible to verified customers only. |
Re: Force All Fields To Be Required On Upload Form? Quote:
I just want the following required: Title Keywords Make Model By the way thanks for all this help and the patiance with me! :D |
Re: Force All Fields To Be Required On Upload Form? I got it working for the title and keywords ... but how do I make custom the custom fields required? Under custom fields I selected that they are required but it still allows you to upload a imge without filling them out. |
Re: Force All Fields To Be Required On Upload Form? I looked for that code in mine and could not find it.. am I looking in the wrong place? |
| All times are GMT -5. The time now is 08:12 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0