Prompt code for editable fields in Lotus Designer

10 pts.
Tags:
Lotus Designer
Please tell me how to write a prompt code for editable fields using @prompt functions & command or any code in Lotus Designer. I mean if a user forget to enter an input value to a particular field then they receive a prompt message like "please enter xxxxxxx".


Software/Hardware used:
lotus designer
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

The simplest way is to use something like this in the Input Validation event:

@If( @IsDocBeingRecalculated | @ThisValue != null ; @Success ; @Failure( “A value for this field is required” ) )

A more flexible way is to use the QuerySave event.  You can check the field’s value, use MsgBox for messages, and use

Call notesuidocument.GoToField( fieldname$ )

to put the cursor back where you want the user to be.  Just set Continue to False to prevent the doc from being saved if there are missing entries.

 

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • shivasanjay

    The answer provided above is no doubt true.. but if someone insists on diplaying message with yes, no. ok kind of button and some title and some text message then @prompt can be used for example instead of @failure :

    @Prompt([Ok];"Reminder";"Don't forget to enter a value for the field xxxx.")

     

    3,255 pointsBadges:
    report
  • Stiletto
    Yeah, I've always been frustrated by the unattractiveness and lack of customization options available with the @Failure function.
    5,545 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: