Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How do i make Required Fields
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How do i make Required Fields

 Post Reply Post Reply
Author
prigozu View Drop Down
Newbie
Newbie
Avatar

Joined: 09 January 2003
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote prigozu Quote  Post ReplyReply Direct Link To This Post Topic: How do i make Required Fields
    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

Back to Top
thekiwi View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 23 November 2003
Location: New Zealand
Status: Offline
Points: 392
Post Options Post Options   Thanks (0) Thanks(0)   Quote thekiwi Quote  Post ReplyReply Direct Link To This Post 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 == """" ||(document.frmRegister.email.value.indexOf("@",0) == -1||document.frmRegister.email.value.indexOf(".",0) == -1)) {
                 errorMsg +="\n\t<% = strTxtErrorValidEmail %>";
        }

Back to Top
prigozu View Drop Down
Newbie
Newbie
Avatar

Joined: 09 January 2003
Location: United States
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote prigozu Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2003 at 8:06am

where should i insert that code, i am a begginer

Back to Top
india View Drop Down
Senior Member
Senior Member


Joined: 21 November 2003
Status: Offline
Points: 499
Post Options Post Options   Thanks (0) Thanks(0)   Quote india Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.