0

Make a formula field concider code as plain text

How to make a formula field ignore a line of html code. As if I would want to write an exemple code to appear in a formula field in my text but I dont want the code to be « used »,  only written in plain text.

This text will then be used in an email so I need it to show as it is simply!

12 replies

null
    • NIOXUS
    • 5 yrs ago
    • Reported - view

    Joelle - when you are entering content in the formula editor, you can enter comments by enclosing the text in quotation marks.  This is a formula >>> let x := 2.  This is a comment >>> "let x := 2".

    • Mconneen
    • 5 yrs ago
    • Reported - view

    @Joelle... I am a bit confused on your use case.   @NinoxUS is 100% correct that you can put comments in quotes.. there is a debate as to if this should be done via assignment like.. 
    let comment :="This is my comment about my code";

    or as a simple text string like..  
    "This is my comment about my code";

    That said.. your last line is my confusion.. 
    "This text will then be used in an email so I need to show as it is simply".. 

    The function editor is not a rich text editor.. so I am not sure about the "html code" in the editor.. 

    I am also confused about HOW you intend to use the formula source..

    Your thoughts? 

    • Sean
    • 5 yrs ago
    • Reported - view

    @Mconneen, I think what Joelle is wanting to do is similar to what Robert did in this thread...

     

    https://ninoxdb.de/en/forum/technical-help-5ab8fe445fe2b42b7dd39ee7/how-can-return-a-value-with-a-own-functiona-5c6944d4e4fdf91be57881b3

     

    He used a function/formula to build HTML. You can then paste the result where you want. I used a button to assign the result from the Formula field to a Rich Text field and it displayed as it would in a browser.

    • Mconneen
    • 5 yrs ago
    • Reported - view

    @Sean.. Ahh.. never would have interpreted it that way.. :)   Thank you!

    • Sean
    • 5 yrs ago
    • Reported - view

    @Mconneen, If I’m right, you’re welcome. If I’m wrong, well, I’m sorry I steered you in the wrong direction! 😁

    • Mconneen
    • 5 yrs ago
    • Reported - view

    @Sean.. No.. I think you are correct..

    • Joelle_Clermont
    • 5 yrs ago
    • Reported - view

    Hi! Thanks for trying to understand my question! (I’m a French speaking from canada!)

    Here is why I ask this question. The goal is to create an email with Zapier in HTML style to be able to insert images and make it look good.  But for Zapier to trigger the automatic sending protocol, a new entry must be created in a ninox table. 

    So what I made already is to have a button that creates an new entry in a sub-table. This table contains those field: TO, Subject, and the a large Text block for the message. 

    On the Main table, there is 3 formula field that are the source of data for the sub-table text field (To, subject and text) 

    I need those to be formula field because they reach for many informations from the main table and other linked tables.

    Then...

    When the button is clicked informations from the three Formula field in the main table is copied in the sub-table  triggering the zapier send email zap.

    BUT

    Simple text and formula works fine. But when I want to introduce html code for a picture 

    (<img src="http://www.website.com/photo.jpg" >)

    It search for « img src » field or tell me it is not defined. But I dont want Ninox to read this line of html code, I only want Ninox to copy the code as text so that when Zapier create the email, the HTML code will be used by the inbox of our client.

    I dont know if I explained it right!

    • Mconneen
    • 5 yrs ago
    • Reported - view

    @Joelle.. sounds like Sean understood and pointed you to a similar link.  

    • Joelle_Clermont
    • 5 yrs ago
    • Reported - view

    But I didnt understand how to do it in the other thread... 

    • Sean
    • 5 yrs ago
    • Reported - view

    Hi Joelle, I personally do not have any experience with this. I suggest you contact support directly and they should be able to help you. Sorry I couldn't be more help!

    • Joelle_Clermont
    • 5 yrs ago
    • Reported - view

    Hé!! I found a solution!! 

    What I did is to create a normal text field in which the default text is the HTML code I need. So in the formula, I simply use a normal formula to show the data of that text field! It works! 

    • Sean
    • 5 yrs ago
    • Reported - view

    Congrats Joelle, I'm glad you got it working!

Content aside

  • 5 yrs agoLast active
  • 12Replies
  • 3555Views