markup for the validation popups ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jamie
    Senior Member
    • Aug 2025
    • 273

    #1

    markup for the validation popups ?

    I can see that `something` will produce a markup is there anything else?

    just what does the [body] part do? as far as i can tell nothing?
    Code:
    recordService\throwBadRequest(MESSAGE, [BODY])
    it would also be good to have more control over the markup and popup title, my users can be a bit thick
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9765

    #2
    You can use markdown in MESSAGE.

    Click image for larger version  Name:	image.png Views:	0 Size:	11.7 KB ID:	125641

    Comment

    • yuri
      EspoCRM product developer
      • Mar 2014
      • 9765

      #3
      BODY is the response body. You don't need it. It may be needed for integrations.

      Comment


      • jamie
        jamie commented
        Editing a comment
        integrations? like a mass update?
    • jamie
      Senior Member
      • Aug 2025
      • 273

      #4
      it seems like not a lot of tradtional markdown seems to work taking the basics form




      recordService\throwBadRequest("Missing `quotedLeadTime` value.`dude`
      #H1
      ##H2
      ###H3

      # testDataComments
      #testting


      Bold **bold text**
      Italic *italicized text*
      Blockquote >blockquote
      Ordered List
      1.First item
      2.Second item
      3.Third item
      Unordered List - First item
      -Second item
      -Third item
      Code `code`
      Horizontal Rule ---
      Link [title](https://www.example.com)
      ");

      produces


      Click image for larger version

Name:	image.png
Views:	0
Size:	32.8 KB
ID:	125645

      is there any documnation as to what espo supports? or how to get a new line? ​

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9765

        #5
        We use marked library. It supports Markdown syntax well.

        Use "\n" for new lines in code.

        Comment

        • jamie
          Senior Member
          • Aug 2025
          • 273

          #6
          Originally posted by yuri
          We use marked library. It supports Markdown syntax well.

          Use "\n" for new lines in code.
          where can i find documentation on what markdown is supported?

          Comment

          Working...