Questions regarding fields

Hi! I want to get fields deeply so I decided to test some of them out.

PAGENUM

When I insert this field as with PAGENUM code and even have page numbering in the footer/header enabled it throws Error! Reference source not found. error. Which is unclear to me as I the documentation doesn’t state anything regarding any reference to this field. And what kind of reference is expected. How to make it work? Let’s say I need to insert page number in arbitrary place in the document.

Surprisingly PAGE code works fine. I don’t get the difference between PAGENUM and PAGE. And what is [\* Format Switch ] for PAGE? Can I get an example?

PAGECOUNT

The same problem happens with PAGECOUNT. It throws the same error.

At the same time NUMPAGES works pretty fine. But why?

ASK

The code inserts a field that prompts the user to enter data that will then be stored as a bookmark. The editor will prompt the user each time this field is refreshed or during merging.

It’s not clear for me at all. What kind of data is meant here? Can somebody demonstrate (maybe record a short video) how to properly use it? When I update the field with the following code: ASK MyBookmark (where MyBookmark points to the document header) it doesn’t prompt me at all.

REF

Regarding this field code I have also several questions:

  • In REF SecondBookmark \d "_" \n bookmark text is replaced by the number, although according to docs number should be added (I assume it means appended).
  • And \d flag doesn’t work as I expected. What I thought would happen is the following output: {BookmarkContent}_{Number}, not just {Number}.

Please give me usage examples and update documentation to make it contain flag usage samples for fields.

FORMULA

Why when I write =SUM(LEFT) \# "0#.#0" (the sum is 7) I get 07. 0 and not 7{space}.{space}0? I thought that hash sign represents a space.

Hello @EmilyGraceSeville7cf

Let me gather all the info and I’ll get back to you.

1 Like

Unfortunately, I get the same error when I try to add heading references to the footer.

The issue has been reported before:

Insert document reference fields - #10 by linuxkangaroo?

Sorry for the delayed response. I was able to get some information on the mentioned fields:

  • PAGENUM and PAGECOUNT are invalid fields, they were removed from the documentation to avoid confusion;
  • ASK field currently has incomplete implementation, it does not work as expected as of now. You can only use it as a reference field for a bookmark in the document to display its content - a dialog window will be implemented in future versions; Basically, when using Mail Merge this field invokes a dialog window to enter additional data that will be positioned in referenced field when merging;
  • REF field with \d switch works with numbered items: if your bookmark is located in multi-level numbered list, you can specify the delimiter that appears between the levels, however, you have to keep in mind that other switches may interfere. For example, using code [REF] bookmark \d _ \w, considering that the actual bookmark is on the second level of list that starts with a and the first level starts with a number 1., the display will be 1._a as per specified delimiter, i.e. {list_level1}_{list_level2); This field cannot display both content of the bookmark and the numbered item;

This one is bit quirky, can you share an example of usage in your case? For instance, a screenshot of the table it is used in.

1 Like