I have some code that needs to be updated. Inside of that code I want to get text input from a user.
What @-formula should be used to get text-input from a Lotus user ?
There's [OkCancelEdit]
key available for @Prompt
function. It brings up a simple input-box dialog.
To input short text from the keyboard, consider the following formula code:
REM "Receiving the text from the keyboard";
_enteredText:=@Prompt([OkCancelEdit] ; "Information request" ; "Enter your recommendation:"; "");
REM "Just to check, what we have typed";
@Prompt([OK]; "debug"; _enteredText);
I have created a simple button to demonstrate the code behaviour. check the pictures below:
And when a user has accepted the input box:
In case you need to add a large piece of text, consider making a dialog box.
Create a form for dialog and use @DialogBox
formula command.
You can find all relevant information in Domino Designer Help. When you are in Domino Designer, press F1
, or select from menu Help - Help Contents