I am having problems with an action button composing a response in a form. How do I limit the number of times an action button can be pressed, i.e., "three strikes and your out." I want to have a response form that can be raised under each parent form no more than THREE times. However, if the user presses the action button and then Esc out of the Response I don't want that to count.
The best way to do that is to increment a counter field in the parent document every first time a response is saved. You could use a formula in the response like the following one.
tempResponse :=
@GetDocField($Ref; "Responses");
@IF(@IsNewDoc AND @IsDocBeingSaved;
@SetDocField($Ref;
"Responses"; tempResponse + 1 );
@Return());
Do you have comments on this Ask the Expert question and response? Let us know.
Dig Deeper on Lotus Notes Domino Application Development
Find out what types of calculations can be computed for a column in a Lotus Notes view and the best way to go about it with this expert response.
Continue Reading
Find out why you can't use Formula language to include a doclink to a specific Lotus Notes view or database and need to use LotusScript instead.
Continue Reading
Discover the reasons behind a Notes/Domino admistrator having trouble with disabled options in the "customize this view" section of his Lotus Notes ...
Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.
Start the conversation
0 comments