I’m trying to find a way to verify that a field exists in a UI document. I’m writing a LotusScript validation function for a form submit action. The doc.hasitem method would work, but I need to verify that the field exists before saving the document.
Thanks
Subject: How to test for a field in a UIDoc?
What would be the definition of a field existing in the UI document? If it is available in the front-end?
Well, if not, Notes will throw error 4412, which you can trap.
Subject: RE: How to test for a field in a UIDoc?
Thanks for the suggestions
Subject: How to test for a field in a UIDoc?
You can use the Doc object before the UIDoc has been saved.
The UIDoc is the object that represents the form on the Screen.
The NotesDocument is the document in memory that represents the document behind the UIDoc. All UIDocs have Documents.
When you save the NotesDoc, (or the UIDoc) the in-memory NotesDocument is written into the database.