locked
CRM 2013: Embedded html showing exact text RRS feed

  • Question

  •                            

    In one of my entity forms – I have an embedded html. In this html I have a text box

    <textarea id="messageTextArea" rows="7" cols="93"></textarea>

    Now I want to be able to show the following text exactly as it appears without using new newline (\n) or any special character

    Update:

    Current Ticket Status:

    Next Step:

    --

    ** If you have any questions, you may find answers to commonly asked questions by visiting our knowledge base: http://help.teksavvy.com/hc/en-us/

    ------------

    I don't want to do this


    var txtBoxOtherResource = otherResource.document.getElementById("messageTextArea");

    txtBoxOtherResource.value = "Hello [Contact_First_Name],\n\nUpdate:\nCurrent Ticket Status:";


    Hasibur Rahman

    Monday, May 11, 2015 10:54 PM

Answers

  • Hi,

    Also you need to add attribute wrap=hard:

    <textarea wrap="hard"></textarea>

    If you want to receive an exactly text.


    Thursday, May 14, 2015 7:21 AM
  • Using this <textarea wrap="hard"></textarea> solved it

    Hasibur Rahman

    Monday, March 28, 2016 2:27 PM

All replies

  • Try both a return and a new line, so \r\n, or even &#13;&#10; to be verbose

    There are plenty of stackoverflow answers for this issue, as it is a HTML issue rather than CRM

    Tuesday, May 12, 2015 9:39 AM
  • Hi,

    Also you need to add attribute wrap=hard:

    <textarea wrap="hard"></textarea>

    If you want to receive an exactly text.


    Thursday, May 14, 2015 7:21 AM
  • Using this <textarea wrap="hard"></textarea> solved it

    Hasibur Rahman

    Monday, March 28, 2016 2:27 PM