Access field in selected document in view with Formula Language

I am creating a View Action which needs to test the value in the ‘form’ field of the currently selected document (without opening it).

Is it possible to do this in Formula Language?

This is a Notes application. Web access not necessary.

I have searched the forum for this question, and I don’t think it’s been asked previously.

Subject: Access field in selected document in view with Formula Language

If it is the currently selected document, you should be able to access it just as if the document were open, by fieldname.

Subject: Access field in selected document in view with Formula Language

I have done this before and yes Ben Langhinrich is correct. Once you have selected the document(s) you can access the fields

Subject: RE: Access field in selected document in view with Formula Language

Simply create a view action and use this as the formula:@Prompt([Ok];“Form Name”;"Form = "+Form)

Go back to your view, select a document in the view and use your new action button to get the name of the form that the document uses.

Subject: Thanks to all. It was blindingly obvious.