How to hide empty fields in PDF submission?