Jump to content

Urgent Help (to me) Required - Formatting text in custom fields


Recommended Posts

So I have a form with a lot of questions and I need to send these to a manager in an email and I can get the text to appear on new lines using:

&#10
or
&#13

In the request is looks nice:

image.png.139e8aec9711460d9a95d264aed921d7.png

But in the email it shows the line returns...is there  a way to remove these?

image.png.f77ff788b89293c16954a7c6a6e3432c.png

I have tried \n \r <br> but they all do the same.....

Link to comment
Share on other sites

So, without having to add any new line characters, when using the Multi-line Text Area, both the details section and the email sent from the request are showing the text stored in this field in multiple lines.  

So, the next thing to look at is how are you populating this field?

Link to comment
Share on other sites

@James Ainsworth so this was added to the request details as a multi line text box, although this is unimportant to us (this was more for testing).

The custom field is updated by adding the text from the question into custom 31 if the customer answers in a particular way.

image.png.8700ca5f109f6a007a1a480071de0252.png

Node:

image.png.9b6b19ba0f8a537b10500f30e4d6821a.png

I have done more testing and it appears that the system (in the details section) recognises &#10 or &#13 but with the others it adds the information into the text box and email

image.png.f188d702adc31168e69e715d7fc7d7fe.png

email details:

image.thumb.png.629c4e41d8d9167f53a1250ccd0ea40d.png

 

Link to comment
Share on other sites

  • 2 weeks later...
Guest Ehsan

@Jeremy,

Could you please clarify how the email is being sent? I tried the steps below and I cannot reproduce the problem.

Step 1: Added 3 lines of text (pressed ENTER at the end of line 1 and 2) to the "Custom 32 (TEXT") option option in "Requests > Update Request > Custom Fields" Hornbill Automation.

image.png

Step 2: Raised a Request against the process that I created in step 1. When viewing the Details section of the newly raised Request, I can see the text in separate lines.

image.png

Step 3: Edited the RequestMessage email template to include the "Extended Information.H_custom_32" variable.

image.png

Step 4: Opened the Request, clicked on the Email action tab, selected RequestMessage from the Template drop-down select and clicked on Send. The line breaks is still respected, when viewing the email.

image.png

Step 5: Opened the email in Microsoft Outlook - The line breaks is still respected.

image.png


I didn't add any syntax (HTML, XML or ASCII) to enforce the line breaks. Are your steps different to mine? If so, could you please provide a detailed breakdown of how you are looking to achieve the end goal (send an email to a manager)? So far, 3 Hornbill members have second guessed the scenario described here, so it would be good to get some clarity on this.

Kind regards,

Ehsan

Link to comment
Share on other sites

@Ehsan same steps as you apart from Number 2 where we have decisions to check if the customer has answered a question in a certain way then we inject the question into the custom field, so the custom field can have anything from 1 question to 20 dependent on answers.

So it appears to be when you inject multiple text lines into the custom field that this happens, below is part of the questions decision tree that updates custom 31 with the relevant details:

image.thumb.png.b8fece67d1bae2c703adf8ff23453683.png

Link to comment
Share on other sites

Guest Ehsan

@Jeremy,

So in my process, I added "Requests > Get Request Information > Progressive Capture Answers" Hornbill Automation, followed by the "Requests > Update Request > Custom Fields" Hornbill Automation.

I then added the question and the answer using the Variable Picker option for the Custom 32 (TEXT) option.

image.png

 

Those two questions in my screenshot are configured as below.

image.png

image.png

 

Having raised a Request, I can see that the custom field is updated. The email is presented correctly as below when I used my previously configured template to send an email. 

image.png

 

If your steps are different to mine, could you please elaborate.

Ehsan

 

Link to comment
Share on other sites

@Ehsan that is correct but you are adding all the text in one go, but we have decisions based on 20 questions then we update the custom field with the text therefore the text gets entered in multiple nodes and so the system does not format each question onto a new line as you have done (this has been raised before).

So in the custom field it ends up looking like:

Which option did you pick? Yes Have you checked the forum? Found a related topic in the forum

But as we want this text to be on different lines that is where we are getting stuck in adding the line break into the custom field. Which we have done and it works, but the email shows the line breaks.

It maybe easier to show you if you wanted?

Link to comment
Share on other sites

4 hours ago, Jeremy said:

we want this text to be on different lines that is where we are getting stuck in adding the line break into the custom field. Which we have done and it works, but the email shows the line breaks.

@Jeremy use an invisible character. For each addition to the custom field that will hold the final text put an ALT+255 on the first line, like this:

image.png

The "dot" you can see in the screenshot highlighted, is the ALT+255 character. To obtain it just press ALT (keep it pressed while typing 255 on keyboard using the numeric keys on the right hand side of the keyboard)

Here is an example of the result, I have two update nodes on Customer 32, one adds text "Value 1" the other adds "Value 2" (as append):

Request timeline:

image.png

Email sent viewed from Hornbill:

image.png

Email received in Outlook:

image.png

Hope this helps.

Link to comment
Share on other sites

Guest Ehsan

@Jeremy, Victor's suggestion is the solution for this scenario. We cannot add space by default as other customers may not have the same expectation when appending text as per your example.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...