Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By rabbidwombat
#795105
I am working on developing nice looking output documents for our users to download and archive at the end of a process. I then copy/paste the HTML into the Email Message End Type Properties so that the person that started the process gets an email confirmation stay their request was approved/rejected. I am using HTML2PDF in the output document as it created better looking tables (not really sure why?)

Anyway, my question is during the process i have several radio options (Approve/Reject)(Accept/Deny) these are boolan variables 1/0. Is there a way in the Html code to put the label or php (or any other language) if statement {if==1 echo "approved" else echo "Rejected"} (yes i know my syntax is wrong!)

Thanks!
User avatar
By amosbatto
#795129
If you already have these labels in your radio button, then you should have case variables that you can insert in your template like:
@#myRadio_label
See: http://wiki.processmaker.com/3.0/Output ... _Variables
(Enable the debugger in the process properties to see the available case variables when you run a case.)

If you don't already have a label variable that you can use, then create a trigger which is set to fire before the Output Document with the following code:
Code: Select all
if (@@myRadio == "1") {
   @@response = 'Accepted';
} else {
   @@response = 'Rejected';
}
Then, place @#response in the template of your Output Document.

VCCL is a leading web hosting service provider, re[…]

Many options exist for converting EML to CSV files[…]

Click Here: https://gorxpills.com/product/super[…]

Click Here: https://gorxpills.com/product/vidal[…]