0

HTML text format doesn't work in view print preview

I'm using the html() function in formulas to make selected text bold (SECURITY DEPOSIT), leaving text before and after at the default setting:

... Premises." + html("<b>SECURITY DEPOSIT</b>") + ": The payment ...

However, the bold tags don't work when the formula is used in a "View" layout, in "Print Preview", or in the pdf output. I've attached screen shots of the formula text with html code, and the View output.

Prior posts also struggle with this. Rich text isn't an option since the source needs to be in a formula, and there is only one text option in the view mode. While it is possible to break up the text into individual segments and format each separately in the View mode, it is impractical given many paragraphs over several pages.

I'm hoping there is a more direct approach to this formatting problem. Thanks in advance for your insight.

(using the App version 3.5.14) 

8 replies

null
    • bflack
    • 1 yr ago
    • Reported - view

    With some research, I found the following in the manual, likely identifying my problem, since a Rich text field is not an option in making a View layout:

    In a normal text field, any HTML tags will not be interpreted but simply displayed as text.

    In a Rich text field, the text will be formatted according to the HTML tags.

    Has anyone found a work-around?

      • Ninox partner
      • RoSoft_Steven.1
      • 1 yr ago
      • Reported - view

      bflack You are right if html is used in the printeditor, the shown result is ok but once PDF created, the styling is lost. About using the Richtext fields, they are basically html. If you want to add multiple of these or in combination with fields you can use for example:

      result := Field1 + raw(Richtextfield1) + Field2 + raw(RichtextField2) ....

      the result can be displayed as html(result)

      Edit (after reading Alan's post) : In the Ipad app, the Richtext output is OK. I assume in the mac-app it will also be OK.

    • Alan_Cooke.1
    • 1 yr ago
    • Reported - view

    As I understand it the Print Engine does not print HTML by default. This needs to be requested using support@ninox.com asking them to implement HTML for your printing. Once that is done you should be fine. This is for a Cloud account, not sure about the others.

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

      Alan Cooke I thought that the print engine could not print HTML (this is actually a bug because it is supposed to be able to do so). I didn't know that you could ask Ninox to enable HTML. Are you sure about this?

      • Alan_Cooke.1
      • 1 yr ago
      • Reported - view

      Jacques TUR Hi there, yes I am sure about it.  Once you have asked Ninox support to implement HTML for your account it should work fine.

    • bflack
    • 1 yr ago
    • Reported - view

    This seems unlikely to be a platform issue (using a Mac App). Text formatting in formulas (either Rich text or html) disappears when I click on the print icon (is that the 'print engine?) --consistent with the manual notes. Doesn't re-appear in the pdf output.

    • bflack
    • 1 yr ago
    • Reported - view

    I'll check with Support and see if there's anything that can be done with my Mac App.

    • bflack
    • 1 yr ago
    • Reported - view

    Swapped emails with Ninox support. "It is true that we in support can activate a printing engine for a Ninox Cloud user but that is covering only special characters (for example greek alphabet)."  A helpful clarification, but not my issue, and I use the Mac app.

    However, they pointed you can use the html() function for text in formulas in the app; an example: html('Field1' + "<br> <b>" + 'Field2' + "</b>"). With fiddling, I got this to work. The syntax with tags and quotes is tricky, but achieves basic formatting that works with the print engine.

    Many thanks for the community support!

    Bob

Content aside

  • Status Answered
  • 1 yr agoLast active
  • 8Replies
  • 440Views
  • 4 Following