HTML Fields set by script not showing up in print

All HTML fields which are set by client script using “$(frm.fields_dict)” or “frm.set_df_property” are not showing up in the print. They show up perfectly fine in the form itself but not the print. Any ideas?