1. Fabrik 3.7 is now available. This version contains critical security updates, please update as soon as possible. Please remember to backup your site before updating, we also recommend testing your updates on development sites if possible.
  2. We had to restore the site around midday (CST) on Wed 7/26 from a backup approximately 8 hours old. So a few posts in the forums were lost. You may want to check to see if you need to re-post anything.

Line break in raw data array email output

Discussion in 'Community' started by mibert, Aug 10, 2017.

  1. mibert

    mibert Member

    Level: Community
    Hi there,

    I have a problem with the receipt plugin of forms.
    When I output a _raw data checkbox field with several options, the output email has no line break but just a comma.

    I.e. the output of {table_field} looks like
    • Option1
    • Option2
    • Option3
    If I output {table_field_raw} it looks like
    Option1, Option2, Option3,

    Is there any easy way to realize a line break for raw data as well?

    Thanks in advance for your help.

    Best regards

    Michael
     
  2. troester

    troester Well-Known Member Staff Member

    Level: Standard
    Why do you output _raw?
     
  3. mibert

    mibert Member

    Level: Community
    Hi Troester,

    this is raw data from a checkbox.
    The description contains the name of the option and the value contains the unique article number.

    So for the instruction to our warehouse, we need to mail them the article number.

    Any idea, how to realize this, would be most welcome.

    Best regards

    Michael
     
  4. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    I don't think there's an easy way, no. The comma separation is done deep inside the generic function that replaces placeholders with data, and isn't configurable.

    I think the only way to do it would be to use a PHP template, and do it yourself by formatting the raw data by hand.

    -- hugh
     
  5. mibert

    mibert Member

    Level: Community
    Hi Hugh,

    thanks for your advise.
    I really appreciate fabrikar and it is an essential part on my website.

    I understand your point and will have to find a another solution.

    Best regards

    Michael
     
  6. cheesegrits

    cheesegrits Support Gopher Staff Member

    Level: Community
    Using PHP templates isn't that hard. And with a paid support sub, you'd get a little coding help.

    Sent from my HTC6545LVW using Tapatalk
     

Share This Page