You don't give a lot of details, but I will try to answer your question. If a validation in your LotusScript agent fails, you could print something like this from the agent:
Print "Valdiation failed"That would be displayed on a Web page. But you would like the user to see a prompt box instead, so print this in your agent instead:
Print "<script>alert('validation failed'); history.back();</script>"It will display a blank page and an alert box, and when the user clicks OK, he will be returned to the previous page.
Dig Deeper on LotusScript
Related Q&A from Jens Bruntt
Web Development expert Jens Bruntt offers suggestions on how to programmatically copy and hide attachments in Lotus Notes rich-text fields. Continue Reading
Learn about an add-on Domino developers can use to programmatically edit rich-text field tables from within the Lotus Notes client. Continue Reading
Web Development expert Jens Bruntt outlines three potential issues to consider when troubleshooting Lotus Notes Domino tabbed table problems. 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.