Print Page | Close Window

How do i make Required Fields

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=8106
Printed Date: 06 April 2026 at 9:13pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: How do i make Required Fields
Posted By: prigozu
Subject: How do i make Required Fields
Date Posted: 15 December 2003 at 9:52am

Hi Guys,

How can I make some fields on the forum registration required. Like Emails, Name etc.

Thank you




Replies:
Posted By: thekiwi
Date Posted: 15 December 2003 at 11:32am
Originally posted by prigozu prigozu wrote:

Hi Guys,

How can I make some fields on the forum registration required. Like Emails, Name etc.

Thank you

Add code to the Javascript validation

eg

        if (document.frmRegister.email.value == """mailto:" document.frmRegister.email.value.indexOf"@",0'>" ||(document.frmRegister.email.value.indexOf("@",0) == -1||document.frmRegister.email.value.indexOf(".",0) == -1)) {
                 errorMsg +="\n\t<% = strTxtErrorValidEmail %>";
        }



-------------
Cheers
TheKiwi
http://www.infobahn.co.nz - Internet Infobahn - website design and hosting


Posted By: prigozu
Date Posted: 16 December 2003 at 8:06am

where should i insert that code, i am a begginer



Posted By: india
Date Posted: 16 December 2003 at 11:17am

register.asp

if u want 2make email compulsory, u can make email activation from admin menu but 4 other fields put the code given by thekiwi in register.asp




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net