Refreshing values on a field change in Lotus Notes 7.0.2.

Posted on 2007-10-05
Last Modified: 2013-12-18
I am creating a form for a user registration database. The user has to answer some questions on the type of user that is being registered that determines what fields are displayed. I do not want to show these fields to the user until the questions are answered. That way, the user cannot start filling items out until the registration type is fully determined.

These questions are a group of ComboBox's. On the last box, I have the following code in the OnChange event.

Sub Onchange(Source As Field)
      Dim ws As New NotesUIWorkspace
      Dim uidoc As NotesUIDocument
      Set uidoc = ws.CurrentDocument
      If uidoc.FieldGetText("Exempt") <> "" Then Call uidoc.FieldSetText("ShowInfo","1" ) Else Call uidoc.FieldSetText("ShowInfo","0" )
      Call uidoc.RefreshHideFormulas
End Sub

On this field, I have selected the option "Refresh Values On Keyword Change" selected and on the form, I selected "Automatically Refresh Fields" selected. The problem is that the event does not kick off, until I exit the field, even if I make a change.

Any ideas how to initiate this without exiting the field? The only one I can come up with is to have a button labeled "Continue" that forces the fields to refresh and checks to see if all screening questions are complete. If they are, then it makes the rest of the form visible.

Any help would be appreciated.
Question by:NormCox
    LVL 63

    Expert Comment

    Can you change it from ComboBox to DialogList?

    LVL 63

    Expert Comment

    I would normally use subforms, or possibly even frames, but that is really not the issue.

    I think that a continue button is fine, since it will also give you an opportunity to check that the user data is properly checked, before going to the next stage.

    I hope this helps !

    LVL 22

    Accepted Solution

    There's a trick to this one!  In addition to the settings you already have, you need to enable the "Run Exiting/OnChange events after value change" setting on the 3rd tab of the dependent field's properties.
    LVL 1

    Author Comment

    Thanks Bill. I have been knocking my head around for a while on this one. I never noticed that entry on the bottom of the advanced tab. Thanks a bunch.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    For beginners of Lotus Notes user this is important to know about the types of files and their location supported by IBM Notes. Mostly users are unaware about how many file types are created and what their usages are. This Article is fully dedicated…
    Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    729 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

    17 Experts available now in Live!

    Get 1:1 Help Now