Form validation on the web

I have a form that I am using on the web.

I need to validate a text field to ensure that it has a value before being submitted (there is a submit button that saves the form and opens up a confirmation page after).

I cannot work out how to do the validation. I am sure it is very simple, but I can’t figure it out! Is anyone able to point me in the right direction?

Thanks!

Subject: Take a look at Designer help file

Specifically there is a page titled: ‘Examples of agents to run before Web users open or save documents’.

The WebQuerySave is one event you could use.

I usually code my button(s) to perform some initial calculations, such as set values to uppercase, trim leading & trailing spaces, etc, then call an agent using @Command([ToolsRunMacro] ; ) ; If the validation fails in the agent, i update a message field o0n the screen, if the agent is successful I open the next page.

Subject: Use Javascript.

Look into onSubmit for the form. Also you could validate the values as people leave the fields in Javascript.

Search google for Domino Form onSubmit

Example of an article you will find
https://searchdomino.techtarget.com/tip/Utilize-The-Javascript-Onsubmit-Event-To-The-Max https://searchdomino.techtarget.com/tip/Utilize-The-Javascript-Onsubmit-Event-To-The-Max