This project is read-only.

Format FormSubmission Field tokens as currency within Email Activity

Topics: Administration
Sep 21, 2015 at 8:39 AM
I have a dynamic form that includes numeric fields that represent monetary values. I have a workflow which generates a notification email when a form is submitted. I would like the value for the relevant fields to be formatted as a dollar value.
e.g. I would like to be able to format the token {FormSubmission.Field:SpecifiedLiability} to display within the email with a $ sign, a comma thousands separator, and 2 decimal places.
Is this possible, and if so how?
Sep 22, 2015 at 5:46 PM
Once you have the value from the field you can do .Format:XXX where XXX is the .NET standard format to apply.
Sep 23, 2015 at 6:00 AM
So if we use the example field value {FormSubmission.Field:SpecifiedLiability} how would I specify the format as currency?
I've attempted {FormSubmission.Field:SpecifiedLiability.Format:C2} but that is not working.
Sep 23, 2015 at 11:50 AM
Which version or branch are you using? I think the chaining to the Text token of that FormSubmission.Field token was added 60 days ago to the 1.9.x branch and will be part of 1.9.2.
Sep 24, 2015 at 5:30 AM
I've got Orchard v. installed.