Results 1 to 5 of 5
  1. #1
    New Pligger Pacificador's Avatar
    Joined
    Sep 2011
    Posts
    18

    Is it possible to manuaaly make a field mandatory?

    Hello!

    I have searche a lot,read enough and tried combination of codes, but don't find the answer; I would know if it possible to make a field as required, but no creating a new field from admin panel; I mean, I have installed Upload module, and I want to make required the fact of introducing someting in the text box. If not, it would show an error.
    Is it possible with a commando or html code?

    Thank you!!

  2. #2
    Constant Pligger JoseffB's Avatar
    Joined
    Sep 2011
    Posts
    129
    Not sure how but I know the extra fields has a required variable. I'd track that and see how they do it for thos then mimic it in the upload php files.

  3. #3
    Constant Pligger voxxxlll's Avatar
    Joined
    Jun 2010
    Posts
    156
    Very simple!
    http://www.thesitewizard.com/archive/validation.shtml

  4. #4
    Constant Pligger JoseffB's Avatar
    Joined
    Sep 2011
    Posts
    129
    Quote Originally Posted by voxxxlll View Post
    Very simple!
    http://www.thesitewizard.com/archive/validation.shtml
    I think he is asking how to modify the upload module to add a required toggle on custom fields in the module. Otherwise yeah just code the validation right into the tpl.

  5. #5
    New Pligger Pacificador's Avatar
    Joined
    Sep 2011
    Posts
    18
    Thank you to both!

    Well, the Upload module has a field where you put the image URL, but this is not a mandatory field so users can submit an article without entering an image URL, so that fact is which I want to avoid, making this field mandatory.
    Maybe the voxxxlll's link would work but I don't know quite well how to implement it. It says something about changing the field name by your one, etc, but I don't know the name of the image URL field of Upload module, nor where I must write the code; if you could help me a little more...

    Thanks again!!

Similar Threads

  1. How to make an extra field required
    By ccsf_jay in forum Questions & Comments
    Replies: 5
    Last Post: 08-24-2011, 08:56 AM
  2. How to make tags field required
    By bookmarkshub in forum Questions & Comments
    Replies: 0
    Last Post: 08-20-2011, 02:23 PM
  3. Is ther a way to make tags mandatory?
    By gjrb29 in forum Questions & Comments
    Replies: 3
    Last Post: 05-04-2009, 09:07 PM
  4. HELP! How do I make the summary a required text field?
    By nitterbitter in forum Questions & Comments
    Replies: 0
    Last Post: 08-26-2007, 07:40 PM
  5. [SOLVED] how to make url submission as not a mandatory step
    By sharatthakur in forum Questions & Comments
    Replies: 2
    Last Post: 07-02-2007, 09:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Pligg Modules and Pligg Templates from Pligg Pro Donate to Pligg CMS Dreamhost Web Hosting Host Gator Web Hosting