Results 1 to 2 of 2

Thread: form validation - Not equal to....

  1. #1
    youssefaoun is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    55

    Default form validation - Not equal to....

    Hello,

    Is it possible to make negative validation?

    example: If the field is equal to value ('Choose Please'), we return an error ?
    Among the function we have
    PHP Code:
    $javascript->addToValidateBinaryDependency(...); 
    Do we have any that perform such a test?
    (I didn't find any)
    Is there any other possibilities?

    Regards,
    Youssef AOUN
    Software Eng.

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: form validation - Not equal to....

    Yes, just make the key of 'Choose Please' blank ("") and then make the field required. That way if the user leaves it at 'Choose Please' it will be blank and the required field javascript will give you the error you are looking for.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 2008-06-27, 10:16 AM
  2. form validation
    By splinters in forum Help
    Replies: 4
    Last Post: 2008-03-12, 09:19 PM
  3. The lead creation form should not be in campaign management
    By bradym80 in forum Marketing/Campaign Management
    Replies: 1
    Last Post: 2007-09-06, 07:16 AM
  4. Form design trouble
    By sysadm01 in forum Help
    Replies: 1
    Last Post: 2007-04-12, 05:00 PM
  5. Form Validation
    By lee1974 in forum Developer Help
    Replies: 1
    Last Post: 2007-02-24, 04:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •