• 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: PHP PDF Pre-Processing Scripts (if)

PHP PDF Pre-Processing Scripts (if) 8 years 11 months ago #37405

Hello..

Can someone help me...

I want to use this code (Script).

require_once (JPATH_ADMINISTRATOR. '/ components / com_rsform / helpers / scripting.php');
RSFormProScripting :: compile ($ info-> adminemail_layout, $ args , $ args );

{if {fieldname: value}} {fieldname: caption}: {fieldname: value} {/ if}


I have a form field: Checbox Group ({Treasurer Option: value}), with options: YES or NO.

If YES is selected, I need to show Text Example 1.

If NO Option is selected, I need to show Text Example 2.


I did so:

require_once (JPATH_ADMINISTRATOR. '/ components / com_rsform / helpers / scripting.php');
RSFormProScripting :: compile ($ info-> adminemail_layout, $ args , $ args );

{if {Treasurer Option: value} == YES} Treasurer: {Name Treasurer: value}, enrolled with the CPF under no. {CPF Treasurer: value} {/ if}

{if {Treasurer's Option: value} == No} There is no treasurer {/ if}


But it did not work.

Can someone help me...
The administrator has disabled public write access.

PHP PDF Pre-Processing Scripts (if) 4 years 5 months ago #41959

  • DiGwork
  • DiGwork's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
I would like to know the answer to this too! :huh:
The administrator has disabled public write access.

PHP PDF Pre-Processing Scripts (if) 1 month 1 week ago #44313

  • dlm
  • dlm's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 76
Any update on this?
The administrator has disabled public write access.

PHP PDF Pre-Processing Scripts (if) 1 month 4 days ago #44317

  • dragos
  • dragos's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 687
  • Thank you received: 131
Hello,

You can take a look at this article.
The administrator has disabled public write access.

PHP PDF Pre-Processing Scripts (if) 3 weeks 6 hours ago #44322

  • iceferret
  • iceferret's Avatar
  • OFFLINE
  • Gold Boarder
  • Posts: 278
  • Thank you received: 74
If you want to do that it's done directly in the Pdf you attach to the user email, here's an example form one of my forms

{if {household:value}!=None}<p><b>Number added:</b> {household:value}</p>{/if} <!-- if household value does not equal 'None' show this, if it is 'None' hide-->
{if {household_1:value}}<p>You added the following household member/s<br>{/if} <!--Hide if no household members added-->

so you need

{if {Treasurer Option: value} = YES} Treasurer: {Name Treasurer: value}, enrolled with the CPF under no. {CPF Treasurer: value} {/ if}
{if {Treasurer's Option: value} = No} There is no treasurer {/ if}

just add in html tags for formatting if you need them
If you can keep your head when all about you are losing theirs, you obviously don't understand the situation!
Last Edit: 2 weeks 6 days ago by iceferret. Reason: update reply
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!