We help IT Professionals succeed at work.

Refreshing values on a field change in Lotus Notes 7.0.2.

NormCox asked
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.
Watch Question

ZvonkoSystems architect
Top Expert 2006

Can you change it from ComboBox to DialogList?

Top Expert 2007

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 !

Unlock this solution and get a sample of our free trial.
(No credit card required)


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.

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.