Search code examples
lotus-noteslotusscript

Lotus Notes: remove section from current form


I have a userform in Lotus Notes with three sections: section1, section2 and section3.

The form is used by three employees: emp1, emp2, emp3. Of course there is no real employees ID's but it doesn't matter right now.

And the issue is: before of after opening the form (or right before save it) by emp1 the section2 and section3 must be completely removed from the form (not hided but removed). In case of emp2, removed must by section1 and section3.

Please help me with the question: is it possible to definitely remove section, field or button from the current form by lotus script code.


Solution

  • Put the sections in subforms and place the subforms to form as computed subforms. This way only the section(s) that you want will be on form.