Search code examples
buttonlotus-notessubform

Display a subform on clicked button - LOTUS NOTES 6.5


I'm new in programming in Lotus and I have a 'problem'. I would appreciate if you would help me. : - )

So, I create a button on a form ( called Form3 ), the button name is Click. All I want to do is when I click the button a subform will appear. I created the subform and I called it Subform3. I guess i have to code in the button's method called: Click. Thanks !


Solution

    1. Add the subform3 to your form3
    2. Add a button to Form3 to control showing the subform
    3. Set the button's formula to toggle a value to a variable:
      FIELD SubformToggle := @If(SubformToggle = 1; 0; 1);
    4. Set the HideWhen formula for the subform to be SubformToggle = 0