Author Topic: Making a Custom Field mandatory  (Read 1435 times)

lindarussell

  • Posts: 2
    • View Profile
Making a Custom Field mandatory
« on: July 19, 2006, 08:42:48 am »
I'm an HTML novice so I don't know how to do this!
I've created a Telephone Number field (user1) but peple filling in the form on the web page can get away with not completing it - if it isn't filled in no error is given.
I want the phone number to be mandatory because I want to make follow-up phone calls.
So how do I do it?  
Better still, I'd like to validate the field (i.e. minimum 11 digits) as well.
Linda Russell
4c Systems Ltd
www.4csystems.co.uk

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Making a Custom Field mandatory
« Reply #1 on: July 19, 2006, 09:53:02 pm »
In v1.87 of ListMail you can make custom fields required, but can't validate them for telephone number format (this might be coming later..)

What I recommend is using JavaScript.  I found a nice validation library which can accomodate phone numbers at the following URL:

http://www.virtualpromote.com/tools/javascript-regex/

Here's another one:

http://www.smartwebby.com/DHTML/phone_no_validation.asp

Regards, DW
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

lindarussell

  • Posts: 2
    • View Profile
Making a Custom Field mandatory
« Reply #2 on: July 20, 2006, 01:16:23 am »
Thanks for the prompt reply Dean!
I'll install the latest version and try out the suggested scripts.
Linda Russell
4c Systems Ltd
www.4csystems.co.uk