Help Required about customs fields text display

i am facing problem in text display in custom field. anyone here or developer’s help will be appreciated

I wanted to display 1 or more customs fields separately, so @lubos provided a code to do that.

when i call custom field, i does not remember line breaks. all text is mixed up due to that.
can we somehow set to remember line breaks in text?

Example,

my text in custom field in

line one text
line two text
line three text

but it is showing gin invoice as

line one textline two textline three text

it was working fine with original custom fields code which is (copied for builtin themes)

        {% for field in custom_fields %}
    <tr>
        <td colspan="99">
            <div style="font-weight: bold; padding-top: 20px">{{ field.label }}</div>
            <div>{{ field.text | newline_to_br }}</div>
        </td>
    </tr>
    {% endfor %}

i dont want extra formatting, but line break is important. if anyone have knowledge about it, please let me know.

The Liquid code @lubos provided only calls the custom field when that custom theme is used. Your problem is the custom field content itself. Inserting HTML <br> tags will resolve the problem:

line one text
<br>line two text
<br>line three text 

will produce:

line one text

line two text

line three text

I know i can use break tag for line break.
but you missed my point, with builtin themes and standard code for customs fields, it remember line breaks and user dont have to use <br> tags for line break.

if its possible in default code then it should be possible in single custom field display also.
and for simple users line accountants, its not proper way to tell them to use <br> tags.
software are supposed to make work easy,
i hope developers will take a look on it.

Themes are written in Liquid. Fields accept HTML. So they behave differently. While you might not enjoy writing HTML, it offers others great flexibility.

If I can offer a bit of advice, it would be not to consider Manager a graphic design tool. It is an accounting program.

i am asking for very basic and simple option/addition. i am not asking to integrate Photoshop or gimps here. what do you guys suggest? i start teaching HTML to accountants?

I know that developers cannot take individual requests to add options or modifications, its practically impossible to do, however you guys should at least poll type option for licensed users to choose which options/modifications they want most.

manager is excellent software, but support here is one of worst i have even seen in last 20 years for a licensed software, if not more, Manager should have better support for licensed users.

Sorry, I totally disagree with you.
Have you ever had any support for your licensed operating systems.
Have you ever had any support for your licensed Microsoft Office Software
Have you ever had any support for ???, I don’t know what other software you have where you don’t get any support at all
With Manager.io you have up to date guides and a forum where the moment you publish your question or problem there is always a forummember very willing to help you.
I work with accounting software since 1979, so almost 40 years, and I have never worked with a developer/software company where bugs were fixed so fast as Lubos does.

It is off-topic, but let me put a question: what support do you expect and how much are you prepared to pay for it?

More appreciation from you here is very well-adjusted and very rude to note the staff at Manager do not provide enough support.

You say @Mian_Waqas_Azfar

You don’t get what YOU want immediately, even after a solution was given just 2 hours and 2 minutes after you published your post, then have the nerve to carry on to say…

To be honest, I don’t think you will find better support than on this fourm.

{{ custom_fields["Ship To / Service Address"]  | newline_to_br}}

This is the code I am using to call a custom field called “Ship To / Service Address”. It is a paragraph type field and automatically generates the new lines to appear identical to the edit screen. As an example it takes

ABC Company
123 Elm St.
Somewhere, Somestate 90210

and outputs it exactly that way, it does not make it a single line. I am by no means a programmer, but I have a fairly good problem solving side, I took the newline_to_br from the Billing Address area and tried it on my custom field and it has worked well.

1 Like