Hi,
Is there a way to display strikethrough text on an interface? I would like to display deleted text with strikethrough when compared two strings. I appreciate any response to this quesiton.
Thanks,
Ram
Discussion posts and replies are publicly visible
You can use the rich text display add on from app market for this, and output as read only text:
https://community.appian.com/b/appmarket/posts/rich-text-editor
Alternatively, you could use unicode characters:
https://yaytext.com/strike/
The text I am trying to display is generated dynamically (on fly). The solution you provided seems to work fine for static text. Is there any style setting that Appian has to get the strikethrough effect on a text?
Nothing OOTB for Appian, but you could build a 26 character to character translation for regular to unicode.
Hi Jake,
Thanks for your responses! This is great suggestion. Could you please share any sample you have?
I have no samples, but here is the design I would follow:
Thanks a lot! This is very useful information. I will go through and implement. Will let you know if I have any questions or once I completed.
I came up with this neat solution.
a!localVariables( local!string: "This is my strike through test", joinarray( a!forEach( items: enumerate(len(local!string)), expression: charat(local!string, fv!index) & char(822) ), "" ) )
Hi Stefan,
Thank you very much! I really appreciate making it much simpler.
Nice. Though, there really isn't much of an excuse for it not being included in the set of styles available in the rich text item component.
I have gone ahead and created a product use case for this internally to help raise visibility into this request.
Great, thanks!
Thank you all for jumping in to help! I was able to complete development with help of Stefan's snippet. The strikethrough feature with "Redline Comparison" plugin makes it easy for comparing oldText with newText and display the differences in a meaningful and readable way. Adding strikethrough to style for richtextitem and other text display controls would be very useful.
Sorry for putting my question in this thread.
We have default words in paragragh fields and want to make it BOLD. Is it possible? When i use fn!richtextfield plugin it is working but i want to do it in paragraph field.
Here is paragraph field.
Also, what is char unicode value for BOLD? where can i find all unicode values.