0

New line in text-field

How can i simulate the "enter" button for a new line in a textfield?

 

field 1 + " enterfunction? " + field 2

9 replies

null
    • Sebastian_Werner
    • 5 yrs ago
    • Reported - view

    You have to enter a line break in the string.

    Example code:

    function log(message : text) do
        Log := Log + message + "
    "
    end;

    This function would add a message to the log field, followed by a line break.

    In your example, it would have to be:

    field1 + "
    " + field2

    • Pianist
    • 5 yrs ago
    • Reported - view

    thnx for the reply but i didn't get it to work. I guess I explained wrong.

    the code i had was :

    Field := "_________________________   " + today() + "   _________________________" + Field

    I just want the date in the beginning of a field so i can start typing in the next line

    thats why i asked to insert a line break at the end of my text-insert

    and if possible the cursor ready at that point but i'm not sure it can

    • Sean
    • 5 yrs ago
    • Reported - view

    What you show there can only be a formula field and they can only be modified through code not in the edit screen.

    • Sean
    • 5 yrs ago
    • Reported - view

    So, to accomplish what you want to do you would create a formula field and below/after that you would create a text field.

     

    In the formula field's formula you would enter:

    "_________________________   " + today() + "   _________________________"

     

    Since formula fields never receive focus in the edit screen the text field would automatically have the focus.

    • Szekely_Zsolt
    • 4 yrs ago
    • Reported - view

    Hi,

    It is works in Ninox client but not works in Ninox Cloud when I would like to send an email with:

    "text

    something else"

    Resoult in Ninox Clinet:

    text

    something else

    Result in Ninox Cloud:

    textsomething else

    Thanks for the help

    Zsolt

    • Szekely_Zsolt
    • 4 yrs ago
    • Reported - view

    ... and I treid it on Windows and Mac Cloud. The result are the same.

    • Sean
    • 4 yrs ago
    • Reported - view

    Try option+return.

    • Szekely_Zsolt
    • 4 yrs ago
    • Reported - view

    Thnaks. But does not work.

    • Pianist
    • 4 yrs ago
    • Reported - view

    Sean,

    Thnx for the solution, the "option" + "return" works

Content aside

  • 4 yrs agoLast active
  • 9Replies
  • 3714Views