td2003
td2003

Reputation: 53

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.

Upvotes: 0

Views: 376

Answers (2)

Michael Gollmick
Michael Gollmick

Reputation: 136

All this should be possible using DXL and LotusScript (in fact we have done this before). But it is not a simple and easy process and I dare to ask if it is really necessary to let people firstly add attachments to a document, only to programmatically remove them afterwards. Would'nt it be a better solution to store attachemnts into separate child documents, visible in the appropriate sections? That way you would keep the document small by still having all attachments. And it would allow you to add more control over what is readable for whom.

Upvotes: 0

Panu Haaramo
Panu Haaramo

Reputation: 2932

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.

Upvotes: 2

Related Questions