Custom placeholder just not working in Prefix

To be clear, I’m up-to-date on Scrivener 3 for Windows (3.1.5.1)
So, I have date/time (in-story) headings, and wanted to put them in metadata and include them at compile.
The custom metadata field is called DateTime, so I go to the compile options for the relevant style, and add a prefix consisting of:

<?custom:DateTime>

The results of the compile just put that in, unaltered.
I initially had it formatted, tried removing as much formatting as I could, but no change. With or without a line break after. It just passes straight through.
I know I’m putting it in the right format, because the text “<?custom:DateTime>” comes through. It just doesn’t get replaced.
Anyone got any ideas?

1 Like

Oh, forgot to add, the metadata type is text, because the degree of accuracy is going to vary and it will sometimes include other bits to be put on that line.

Is there a reason you’re using <?custom…>?

I’ve never seen that before: all the placeholders that I know about use <$ as the trigger.

The List of Placeholder document on the Help Menu has this:

so the first thing I’d try is replacing the ? with $ in your placeholder.

If that doesn’t work, then I don’t know what’s happening – sorry.

3 Likes

Oh, now I need to check if it was a typo here or there…

Yeah, I’m officially an idiot. The thread can be locked :rofl:

It’s really easy to miss things like this, isn’t it? No problems – glad it’s sorted for you.