Can I decide compact fields while printing data

I’m editing print format, when I click to print button is showing some option. One of them “Compact Item Print”. when I check it, it shows some fields, when I uncheck, it shows all field which I have decided in print format.
Here I want, when I check “Compact Item Print”, I can decide which fields will show and which will hide.

That is an excellent question.

The fields are hard-coded in the ERPNext App. See screenshot below. You could override them with your own, custom Python code. But there is no way to define them in the UI, per DocType.

okay. this worked. Thank you…