2

I try to build an advanced form in Lotus Notes. Some fields should hide in condition to the state of other fields.

I can hide one field by defining a formula for this. But the problem is I have to first save the document, close it and reopen it to see the fields are hidden.

I want that the field is hiding while the UI doc is in edit mode when I change the state of fields.

Thank you!

Best regards Robert

Robert Moszczynski
  • 1,081
  • 2
  • 16
  • 26

4 Answers4

4

You can set option "Refresh fields on keyword change" to recalculate the hidden formulas of other fields.

This option is avaliable for fields of type

  • Dialog list
  • Checkbox
  • Radio button
  • Combobox
Knut Herrmann
  • 30,880
  • 4
  • 31
  • 67
2

Try to use one of the following commands:

ViewRefreshFields

@Command([ViewRefreshFields])

or

RefreshHideFormulas

@Command( [RefreshHideFormulas] ) 

I hope this helps.

Georg Kastenhofer
  • 1,387
  • 12
  • 32
1

You can use various approaches to achieve this. If you use some sort of select-fields like Radiobutton or Checkbox you can use the field option "Refresh on keyword change" to recalculate the formula.

enter image description here

Michael Ruhnau
  • 1,399
  • 1
  • 7
  • 15
0

You could use Call notesUIDocument.RefreshHideFormulas but beware of it's greedy resource consumption on large forms.

Link on IBM Knowledge Center

Jankapunkt
  • 8,128
  • 4
  • 30
  • 59