Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
6 replies
Subscribers
7 subscribers
Views
2227 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
We are on Appian 7.7 , while adding instructions to SAIL components like a!dropd
manojj
over 9 years ago
We are on Appian 7.7 , while adding instructions to SAIL components like a!dropdownfield(), how can we have multiple lines separated by new line?
e.g. : a!dropdownField(....instructions: "a. Use option one to do abc b. Use option two to do xyz"
On UI the instructions a. and b. should appear in multiple lines one below the other.
I tried using the CHAR function to add new line, but did not seem to be working.
OriginalPostID-171560
OriginalPostID-171560
Discussion posts and replies are publicly visible
0
abhi.jana
Appian Employee
over 9 years ago
Have you tried char(10) and/or char(13)?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
manojj
over 9 years ago
I tried using the below text but the live view shows it all in one line,
instructions: "a. Use option one to do abc " & char(10) & char(13) & "b. Use option two to do xyz",
instructions: "a. Use option one to do abc " & char(30) & "b. Use option two to do xyz",
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
manojj
over 9 years ago
Any other suggestion Abhi?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Amitkumar
over 9 years ago
I have tried this in the past and it did not work for me either. It seems that char(10) or char(13) do not work in the instructions property. However, when these functions are combined with Rich text display functions, they work as expected. Eventually, I displayed entire instruction text in a single line and that was acceptable to some extent.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sonalk
over 9 years ago
Hi Manoj,
Place a paragraph field below the dropdown field make sure the label is empty and the label position is similar to that of the dropdown field, then using the below code its doable. Here the instructions are passed as rule inputs. PFA screenshot for reference.
a!paragraphField(
label: "",
labelPosition: "ADJACENT",
value: ri!firstInstruction & CHAR(
13
) & ri!secondInstruction,
saveInto: {},
readOnly: true(),
refreshAfter: "UNFOCUS",
validations: {}
)
Hope it helps!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
manojj
over 9 years ago
Thanks Sonal, I tried with richTextField first but your solution looks better.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel