I have a textarea field that must show multiple lines in different lines. The field is populated using a form field rule like this:
lookupResult=US: [entry.lookupResultPSAN] UK:[entry.lookupResultPPEP] France:[entry.lookupResultPAM]
The bolded part appears on one line, and then the value should appear in the next line.
I tried \n and \\ , but neither seems to work. My output always appears like this:
US:\n<output> UK:\\ <output>France: <output>
What can I use as newline character when assigning values to show in a textarea?
\n makes the next line
I tried \n but it shows up as \n in my output form. How do I stop it from showing as \n and just have the data displayed on the next line? Are there spaces or quotes to be added?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, it must be \\n
(double slash n... seems to be removed from my previous answer)
See the demo below
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Alex Medved _ConfiForms_
is it possible to also use bold text and italics? I tried some <b></b> stuff, but could not manage to do it.
In my case it is a "Rules for Definition" with a value to set. The line breaks worked fine for me.
Thank you in advance!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Textarea is not an HTML (holding) field, so you cannot use HTML tags there
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ConfiForms has fields that can hold the HTML - you can use those or even "textarea", but when you reference this field via ConfiForms Field macro then you can use "renderAsHtml" function
Something like
mytextareafield.renderAsHtml
https://wiki.vertuna.com/display/CONFIFORMS/Virtual+functions
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi guys.
I am having problems with something similar, but in my case I try to convert a smart multiselect field in a textarea with different lines. Imagine the multiselect field has been chosen with three different values: MADRID BARCELONA VALENCIA.
I want to show the result in different lines:
MADRID
BARCELONA
VALENCIA
How should I do it? Appending \\n to the following chain: [entry.mymultiselectfield.transform(label).append(\\n)]
A little bit lost with this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is about appending \\n to each label..
[entry.mymultiselectfield.transform(label.append(\\n))]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have a related question related to line breaks.
I am trying to pass an Acceptance Criteria to our JIRA tickets from a ConfiForm. The Acceptance Criteria is hardcoded in a hidden field. There are two bullets for the Acceptance Criteria. Trying to get them on different lines but nothing works. Here is the linebreak attempt:
Result I get is this:
Any help will be appreciated.
@Alex Medved _ConfiForms_ any ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try setting with one \
\n
As this is not a parameter to function where you need to escape it with a double \\
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Alex Medved _ConfiForms_ how do I allow users to use a blank line in a TextArea field? One of the users entered two lines of text and a blank line between them. This generated an error message when he tried to submit the form. Appreciate any help here, thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What error do your users get!? TextArea allows and supports new lines - I dont understand what you are talking about?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.