Names field validation mystery

Posted on 2005-04-12
Last Modified: 2013-12-18
I'm somewhat new to Notes and using Notes 5.0.5.

I want my document to have a field with similar functionality to the "SendTo" field in the mail database.  I want a user to input a name and if the name is not found in any address books I want the field validation to fail.  SendTo does this perfectly in the mail database, but I can't seem to mimic this behavior in my database.  I have copied the properties of the SendTo field exactly in my field but nothing seems to make the field validate itself.  I thought that perhaps using "Use Address Dialog for choices" would help, but it did not.

I have copied every property and even the Input Translation for the SendTo field, but it still will not perform a lookup.  Is there some trick to getting it to work?  Is there some database setting that must be done?  What am I overlooking?
Question by:GohdanTheMoblin
    LVL 24

    Accepted Solution

    It is not the field ! It is the form prperty which is giving that message.

    When the form is enabled for mailing or by using mailoptions field which is a reserved field .. ambiguous name is popup when sendto field contains some ambiguity.

    Try enabling this feature and you will see the dialog before mailing the document..Even when you try to send mail manually it will behave in similar fashion

    LVL 46

    Expert Comment

    by:Sjef Bosman
    I think it's not in the field itself, but either in the Notes client or in the QuerySave event of the Memo form. The latter checks a lot of things. Look into the ScriptLibrary called CoreEmailClasses, with the MemoObject class.
    LVL 2

    Author Comment

    I checked the QuerySave event and it just calls EmailSave in the EmailProcessing Script Library.  This does quite a few things but never references the SendTo field.

    If it is indeed a Form property then I am in a pickle.  This form is not mailed; I have a Sub that generates a mail document and sends it to the appropriate person.  Perhaps I can find a way to play with MailOptions and the form's properties to trick it into working until I am done with it.
    LVL 2

    Author Comment

    Does the invalid address raise some kind of trappable condition?  When I press F9 to refresh it is happy to report the error, but when I save my document it doesn't complain at all.

    Shouldn't unchecking "Allow values not in list" make any entry not in the address books invalid?
    LVL 24

    Expert Comment

    GohdanTheMoblin, Sorry I have to take back my previous comment...

    Use lookup name as it is entered option + refresh document option for your names field.

    When you enter name and hit "," it should bring up the dialog...
    LVL 2

    Author Comment

    I managed to solve my problem with a bit of a workaround.  I made the field a computed field and controlled its value through a button with a @Picklist.  It's not the prettiest in the world, but I don't know that there is a way for my logic to incorporate the names field.

    HemanthaKumar you answered the question that I asked so you get the points.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
    IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
    This video discusses moving either the default database or any database to a new volume.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    10 Experts available now in Live!

    Get 1:1 Help Now