Returns a list of all the fields in a document.
@DocFields
fields
Text list. Each item in the list is the name of a field on the document.
This function works in any formula that runs in the context of one or more documents. It does not work in column and view selection formulas.
After a document is saved, the returned list includes some of the internal Notes® fields, such as the Form field, that is added by Notes to a form when it is saved or the $Links field, that indicates that the form contains a link to another document or database.
@DocFields
@If(@Contains(@DocFields; "$Links"); "Yes"; "No")
Field fieldtochange := @Prompt([OkCancelEditCombo]; "Edit Fields"; "Please select the field you want to edit."; ""; @DocFields);
@SetField(fieldtochange;(@Prompt([OkCancelEdit]; "New Value"; "Please enter a new value.";"") )
@Elements(@DocFields)-2
Subtract 2 from the total number of elements to account for the current field and the Form field, which is an internal Notes field.
Fields property of LotusScript® NotesForm class
Fields property of Java™ Form class