Reputation: 13
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 ?
Upvotes: 0
Views: 2399
Reputation: 13
If you send a button via email, you essentially turn over the code to the end user. You don't say what you're doing with the button or why you're prompting the user for input but I'd suggest the following. This assumes you just want answers to a question. Create a db to store answers. Send an email that includes a link to the 'answers' db. The db postOpen event can either spawn a doc with an input field or spin up a LS driven input box. The user fills in the box and the LS creates a doc in the Answers db. This isolates the design from the user and saves data/docs where you actually need the info. If you need the data in some existing app, just modify the concept
Upvotes: 0
Reputation:
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
Upvotes: 4