Filename Invoice

Hi i have created a custom field for the client.
I want to use the custom field in the pattern. but it doesn’t work

Invoice_{$year}{$counter}_{$client.customValue1}

how can we do it ?

Invoice_{$year}{$counter}_{$clientCustom1}

If you click the question mark at the right of the pattern input you’ll see the list of available variables.