Services Plugins FAQs

Add conditions in pdf conjurer

Hello,

I have created a table in my pdf conjurer workflow, and I would like to show the RepeatingGroups List of Moyenne matiere’s element based on a condition in my 4th column. For example, if this elements “Show” is “Yes”, then show this element in the cell, otherwise don’t show.

Is there anyway to add conditions in order to restrict showing elements in a cell of a column ? Maybe in the pro version ?

Here is an image of the 4th column config

Here is an image of the pdf (In my case in the 4th column (Appreciation) the first and 3rd cells must not show the element because their “Show” element is set to “No”)

Thank you.

No one has any solution ?

@zeroqode1

Hi @samaywise ,

Thanks for reaching out and apologies for delayed response over the weekend! :pray:

Regarding your question about adding conditions to restrict showing elements in a cell of a column in PDF Conjurer, here’s some general advice and suggestions for managing conditional logic:

  • Conditionals in the PDF: The PDF Conjurer plugin doesn’t directly support adding conditions inside table cells based on dynamic data, especially for repeating groups. While you can conditionally display elements on the page (like text or images) within the plugin, more complex conditions tied to table cell visibility or data filtering in a PDF might require you to adjust your data structure or the way you handle the workflow.
  • Alternative Method – Filtering Data:
    • One option to handle conditional data in your table is to filter the data before passing it to the PDF Conjurer. For example, before passing the list of assets to the PDF generator, you can apply a condition in your workflow to exclude any assets where the Show field is set to “No”. This will ensure that only the relevant data is included in the table, and empty cells won’t appear in the PDF.
  • Use Conditional Text and Dynamic Data:
    • You can still apply conditions to the text elements inside your table by using dynamic data with conditions.

Limitations with PDF Conjurer:

  • The plugin works well for static tables and lists, but it doesn’t have built-in support for complex conditional logic within tables themselves (like hiding individual cells based on conditions). The best approach for complex conditional data display might involve filtering your data and ensuring the content passed to the PDF generator is already filtered according to the conditions you need.

General Support:

Please note that our team provides general support for plugin usage and bug fixes. If you need more detailed customizations or advanced workflows, it might be helpful to explore solutions on the Zeroqode Forum or Bubble Forum, where you can find more complex use cases and community-driven advice.

For more detailed guidance, please refer to the following:

Let me know if you need further clarification or have more questions!

Best Regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3

I found a solution, thanks again.
However is there any possibilty to change each column length independently ?

I would like to reduce “Coefficient” column length and increase “Appreciation” column length

Hi @samaywise,

Glad to hear you found a solution!

Regarding your question about adjusting column widths independently—unfortunately, PDF Conjurer does not have a built-in feature to set different column widths dynamically. However, you can try the following approaches:

  1. Manually Adjust Column Widths
  • When defining your table, you can set the width of each column by adjusting the structure when adding columns. Since there isn’t a direct setting for column widths, you’ll need to control it indirectly.
  1. Text Formatting & Padding
  • Reduce the font size for “Coefficient” and allow text wrapping for “Appréciation” to create a better balance.
  • Add extra spaces before or after text in smaller columns to shift spacing dynamically.
  1. Using an Extra (Empty) Column
  • Adding a hidden or narrow column next to “Coefficient” can help redistribute space, making “Appréciation” appear wider.
  1. Splitting into Two Tables
  • If needed, separate structured data (Matière, Moyenne, Coefficient) from longer text (Appréciation) into different tables for better control.

Looking forward to your reply. :pray:

Best regards,
Support Team
Browse all Zeroqode Plugins for Bubble
Banner_Last3