Hello,
I need help finding the correct string to return today's date in a Doc Merge Template. In PDF Manager I used a smarty modifier, but I'm having trouble
moment().calendar(referenceDay)
Hello,
I need help finding the correct string to return today's date in a Doc Merge Template. In PDF Manager I used a smarty modifier, but I'm having trouble
moment().calendar(referenceDay)
I am not familiar with Doc Merge but if you check the Template Assistant in the help at the bottom of the page:
it suggests functions like today and now:
and you can copy to clipboard from there.
FrancescaS
I have tried the template assistant functions for today {!formula value='today('} comes up as undefined on the document.
Kate Rose instead of {!formula value='today('} you need {!formula value='today()'}
i.e. a closing parenthesis.
I just tested with a fresh doc the following two:
and they generated the following:
I'll raise an Issue with the product group too to ensure this experience is improved - thank you for flagging!
although this is a 2 year old thread, the Template Assistant is still showing the second formula which gives the "undefined" result......
Hi Sarah!
Thanks for your reply! Unfortunately, issue 91358 remains unresolved. You will have to add the ) manually to make this field work as expected.
You may learn more about the bug here:
https://portal.sugarondemand.com/index.php#supp_Bugs/91358
If you'd like, you can contact support to add you to this bug. The more information we have regarding a bug, the more likely we are to get it fixed. If you would like me to do that for you, let me know, and I can!
-raye
Hi Sarah!
Thanks for your reply! Unfortunately, issue 91358 remains unresolved. You will have to add the ) manually to make this field work as expected.
You may learn more about the bug here:
https://portal.sugarondemand.com/index.php#supp_Bugs/91358
If you'd like, you can contact support to add you to this bug. The more information we have regarding a bug, the more likely we are to get it fixed. If you would like me to do that for you, let me know, and I can!
-raye