ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

Show Empty Field Element in print format


#1

I want to show all Element in the form even if it is empty.
for ex.
I created Maintenance check form like this :

as you see last two checkbox & input feilds are empty. but:

in print format these two are missing in the print?!!
it will be vary confusing for the maintainer or management if the form is not compleate.
How to solve this?


#2

Given the scenario, a Select field of yes/no should be better, and will also solve the printing issue.


#3

This is not a solution for me.
I want to print empty checkbox!
what about last two empty input text fields @umair ?


#4

@Mohammed_Redha,

unchecked fields are ignored in the Standard Print Format. Please check https://github.com/frappe/frappe/blob/develop/frappe/templates/print_formats/standard_macros.html#L71

To show the unchecked field on the print format you will need to change the conditions in standard_macros.html, But this is not recommended as it may break the future updates. You may use the solution suggested by @umair.

Thanks,
Makarand


#5

@makarand_b Thanks for your answer, what about last two empty input text fields ?


#6

@Mohammed_Redha,

Empty fields are ignored in print format please check the standard_macros.html file.

Thanks, Makarand


#7

Thanks @makarand_b,
I am trying to add this as feature to ERPNext.
I do some modification and I am able to show check elemnt only!
how I can show the rest like data,date,list,…
where is it ignored?


#8

Dear @makarand_b and @umair,

Could you help me on this to continue building this feature :slight_smile:


#9

:confused:


#10

Dear @Mohammed_Redha any help about this topic please advise, I am facing the same issue.


#11

I am sorry to tell you that I stopped looking for this since no one from the community are helping me.
I need some hint at least!
and I will do the rest


#12

same here !


#13

Hi ,

Is there any way to show blank fields in the print format now? I’m really surprised that this wasn’t immediately available in Print Settings. Any guidance on the current state/workarounds would be greatly appreciated

Thanks


#14

This is also affecting custom print formats not just the standard ones! If anyone could suggest a workaround for this, I’d be most grateful

Kind regards,