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
9 replies
Subscribers
10 subscribers
Views
9442 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Data and Records
Font Styles
varnikam
over 7 years ago
Hi,
I am trying to set the font color and size of the text using html code in tempo but it's not working. I know SAIL does not recognize html code but I was wondering what language does SAIL support.
Thank you,
Varnika
OriginalPostID-249735
Discussion posts and replies are publicly visible
0
Karthik
over 7 years ago
We cant really change the font color or face in sail forms, but you can change the size in a rich text component with either one of “NORMAL” (default), “EMPHASIS”, “STRONG”, “UNDERLINE”, “HEADER_LARGE”, “HEADER_MEDIUM”, “HEADER_SMALL”. I have a question though, how are you introducing html code in tempo?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
varnikam
over 7 years ago
Through plugin (function). I checked it's jar file but not sure if I understood the code and that's why wanted to know what language apart from html SAIL supports..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Karthik
over 7 years ago
Jars will have all the components defined as xmls and it wont have any htmls. im not sure if we can inject classes/xml in appian jar since its not open source.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedb
over 7 years ago
A workaround is to write and format the text you want in an image and embed it in your SAIL interface.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@varnikam i agree with @mohamedb, because Appian Do not recommend to write HTML or CSS code any more. Coming to what language does SAIL support, as we know that Appian developed on Java Platform, coming to SAIL they might be using Spring or Servlet internally and they might be displaying the Content using PrintWriter Object, but not sure about SAIL internally used Strategy
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chandu
A Score Level 2
over 7 years ago
Correct me if my understanding is wrong, the workaround given by mohamedb may be good in some cases, As it depends on the fields displayed on form, if we want to display every field in your own styling first we need to write in any html and change that to Image, this is will be tight coupling for displaying fields, in future if any requirement comes to change the form structure like addition of fields, changing the label etc, we again need to convert the field into image.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
I agree with @chandrasekharg, if there is any chance that in future the label may get Change (Possibly Yes), we should never define these labels as an Image, However using an Image for label is anyhow not a good approach at all. And not to forget using SAIL feature enable us the portability to view the Same UI in Mobile, tablet etc.. devices as well. And also having one images for each label, increases the Size of Knowledge center too unneccesary. And in future if we import the same application in some other Server, then again we need to manually point those image, to get work. So as per my Suggestion do not use images for these purposes
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
varnikam
over 7 years ago
Thank you all for the comments.
The workaround provided to display text as an image is nice but can be adopted for static contents/texts only. Displaying dynamic texts in an image can impact the performance of the application substantially.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mohamedb
over 7 years ago
Yes, you can you a knife to cut a cake or to cut your fingers :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel