• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Remove table columns from PDF?

Remove table columns from PDF? 8 years 3 months ago #36358

I would like to know if it's possible to remove a full table column based on a field being empty on the output PDF once a user has submitted a form.

I am already using this php code to hide if the field is empty:
$ph='{Temperature1:value}';
$value_key=array_search($ph,$args['placeholders']);
if ($args['values'][$value_key]=='')
$info->useremail_layout = str_replace($ph,'',$info->useremail_layout);

Now, if the user does not enter a value for "Temperature1", it will hide the value. However, since I'm using a table layout, I would also like to hide the whole column for "Temperature1".

Basically I will make div class for the table column with all "th" and "td" values.

Any help would be appreciated.

Regards
Last Edit: 8 years 3 months ago by fretsmaster.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!