Questions and discussion about using ProcessMaker: user interface, running cases & functionality

Moderator: ArturoRobles

By danielwalters
#822591
Dear Processmaker community,

I have an output document that displays a grid of various activities. The grid contains date fields.

The date fields are set to the format DD-MM-YYYY when used in dynaforms and work great.

However in output documents these are shown as YYYY-MM-DD hh:mm:ss which I cant have showing in various contracts :(

I understand that i could use a trigger to set the format of date variables before I generate the contract - but i only know how to do this for single variables, and not within a grid.

In short, I need grid dates to show as DD/MM/YYYY in output documents.

Is there a simple solution to this?

I've also tried adding javascript but this doesn't seem to get executed before HTML2PDF.

I've attached photo example.

Many thanks!
Daniel
Attachments
chrome_2019-01-28_14-44-34.png
chrome_2019-01-28_14-44-34.png (43.69 KiB) Viewed 1220 times
User avatar
By amosbatto
#822600
If you have configured the datetime fields in your Dynaform to display the date correctly, then in your Output Document template, you need to use @#variable_label instead of @#variable for those datetime fields.

For example, if the ID of your datetime field in the grid is "startDate", then use: @#startDate_label

Hi, I have some tasks and sub-processes which are[…]

How to create a group by trigger

I need to create a group by trigger and then assig[…]

BPMN-Extension

Hello guys, I would like to extend the bpm notati[…]

Integer Formatting.

Assuming the grid you have defined 10 columns, sim[…]