I use a entityform type which uses one field defined as decimal. For display I configured the value to be shown without numbers to the right and no thousand marker. This works fine for the display in entityforms. I also use a notification email for this entityform type. I picked the decimal field for the mail body by replacement patterns. In the notification email now the field is shown with thousand marker and two numbers to the right. I thought the notification email should get the format info from entityform type as well. Or am I missing something here?

Comments

tedbow’s picture

The Email uses the "email" view mode. Under manage display use "custom display settings" vertical tab and check Email. Then you can set field formats here.

stefan.korn’s picture

I tried custom display settings for Email, but it has no effect on the format in the EMail. The EMail is pure text, no HTML. Could this be the cause? But I cannot see where to change Email format to HTML.

tedbow’s picture

Status: Active » Closed (works as designed)

Entityforms doesn't handle HTML emails. You would have to look at mime mail or other modules

siddhi shah’s picture

The Email uses the "email" view mode. Under manage display use "custom display settings" vertical tab and check Email. Then you can set field formats here.

abc xyz’s picture

This is right.

siddhi shah’s picture

what??

bloomt’s picture

Issue summary: View changes

I am also very confused, changing the email display mode does not have any effect on the email display. All that I want to do is make the labels display inline with the submission values but I have not been able to accomplish this yet.

thebolet’s picture

@bloomt
Did you find a way to display inline labels in the email notification ?

amklose’s picture

Category: Support request » Bug report
Status: Closed (works as designed) » Active

Sorry to open up an old issue but the root problem was never addressed.

Even when using the "Email" view mode, the field label settings have no effect.

One can rearrange the fields in the email view mode and the fields will indeed be rearranged in the resulting email, but setting the labels to either "Above" or "Inline" makes no difference - they always appear above the field values in the email.

With the labels set to "Inline", this is the resulting structure of the HTML email:

<div>
  <div>
    <div>
      <div>
        <p>
          Submission:
        </p>
        <p>
          Submitted by admin on Mon, 06/20/2016 - 4:57pm
        </p>
        <p>
          Name:<br>
          Tony
        </p>
        <p>
          Email:<br>
          <a href="mailto:test@test.com" target="_blank">test@test.com</a>
        </p>
        <p>
          Address:<br>
          Test
        </p>
        <p>
          Test
        </p>
        <p>
          Test, WI 12345
        </p>
        <p>
          United States<br>
          Phone:<br>
          <a href="tel:1234567890" value="1234567890" target="_blank">1234567890</a>
        </p>
        <p>
          Comments:<br>
          Test comments
        </p>
      </div>
    </div>
  </div>
</div>

Another strange thing is how it connects the country part of the address field with the phone number field in the same paragraph tag.

jorditr’s picture

I'm finding a similar problem. Entityform does not handle HTML, but if I set my site to use MIME mail system I can't find how to have bold labels since the module entity form just provides the code on #9 and we see that the label has not any HTML tag by its own. We need some kind of a class="label" div or span around the label to be able to adjust CSS on it. Any help about how?