• 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: CONDITIONAL FIELDS PHP BUDGET

CONDITIONAL FIELDS PHP BUDGET 6 months 6 days ago #43690

  • gonro
  • gonro's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
Hello,

I have a form to create a budget in PDF format with price calculations. I have conditional fields for "Mantenimiento" that are displayed or hidden depending on the selection in the "Plan web" field. For example, if I select the "Home" web plan, it will only show the "Home" maintenance, hiding the rest of the fields. So far, so good.

The problem arises when I want to pass the value of the "Mantenimiento Home" field to the PDF, as there are two other maintenance options (Pro and Tienda).

In other words, how can I pass the selected value for maintenance to the PDF?

www.creatico.es/web/presupuesto-web-online

Thanks
The administrator has disabled public write access.

CONDITIONAL FIELDS PHP BUDGET 6 months 6 days ago #43691

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 630
  • Thank you received: 114
Hello,

You can try taking a look at this article (it applies for PDF files as well).
The administrator has disabled public write access.

CONDITIONAL FIELDS PHP BUDGET 6 months 5 days ago #43692

  • gonro
  • gonro's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
I write this in the PDF layout, "PlanWeb" is a dropdown whose actual items are:

LANDING PAGE [pX]
WEB HOME [pX][c]
WEB PRO [pX]
TIENDA PRO [pX]


{if {PlanWeb:value}=LANDING PAGE} {TotalMantenimiento-home:value} € / año{/if}
{if {PlanWeb:value}=WEB HOME} {TotalMantenimiento-home:value} € / año{/if}
{if {PlanWeb:value}=WEB PRO} {TotalMantenimiento-pro:value} € / año{/if}
{if {PlanWeb:value}=TIENDA PRO} {TotalMantenimiento-tienda:value} € / año{/if}

With this example, it doesn't show me anything, but I've tried with other fields and nothing...
Last Edit: 6 months 5 days ago by gonro.
The administrator has disabled public write access.

CONDITIONAL FIELDS PHP BUDGET 6 months 5 days ago #43693

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 630
  • Thank you received: 114
Hello,

This is most likely due to the fact that there's an extra space in the field items. You can try crafting your 'PlanWeb' dropdown field similar to:
LP|LANDING PAGE [pX]
WH|WEB HOME [pX][c]
WP|WEB PRO [pX]
TP|TIENDA PRO [pX]

..then use similar {if} conditions:
{if {PlanWeb:value}=LP} {TotalMantenimiento-home:value} € / año{/if}
{if {PlanWeb:value}=WH} {TotalMantenimiento-home:value} € / año{/if}
{if {PlanWeb:value}=WP} {TotalMantenimiento-pro:value} € / año{/if}
{if {PlanWeb:value}=TP} {TotalMantenimiento-tienda:value} € / año{/if}
The administrator has disabled public write access.

CONDITIONAL FIELDS PHP BUDGET 6 months 5 days ago #43694

  • gonro
  • gonro's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
it doesn't show me anything
The administrator has disabled public write access.

CONDITIONAL FIELDS PHP BUDGET 6 months 5 days ago #43695

  • gonro
  • gonro's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 4
I had spaces in the dropdown fields, I removed them, and now it works.

Thank you.
The administrator has disabled public write access.

CONDITIONAL FIELDS PHP BUDGET 6 months 5 days ago #43696

  • dragos
  • dragos's Avatar
  • OFFLINE
  • Administrator
  • Posts: 630
  • Thank you received: 114
Glad I could help.
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!