I am quite new to Umbraco and using Razor to display form values within email templates. However, what I am trying to do is display certain fields in the email template, when a specific option is checked within a multiple-choice checkbox field.
For example, the options in the multiple-choice checkbox are:
Document
Spreadsheet
Image
External Web Link
I have done a few tests already, but it only seems to display one of the IF statements, even if 'Document' and 'Spreadsheet' is checked.
Below is the example piece of code I am using. I have a feeling I am not using the correct code to get the checked options, for this specific field type, but like I said, I am quite new:
Umbraco forms - Razor email template
Hope someone could help.
I am quite new to Umbraco and using Razor to display form values within email templates. However, what I am trying to do is display certain fields in the email template, when a specific option is checked within a multiple-choice checkbox field.
For example, the options in the multiple-choice checkbox are:
I have done a few tests already, but it only seems to display one of the IF statements, even if 'Document' and 'Spreadsheet' is checked.
Below is the example piece of code I am using. I have a feeling I am not using the correct code to get the checked options, for this specific field type, but like I said, I am quite new:
'Document' option:
Spreadsheet option:
Hoping someone could point me in the right direction. Thank you in advance for your answers.
Jon.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" button below.
Continue discussion