Skip to main content
October 18, 2023
Question

Format rich-text values

  • October 18, 2023
  • 7 replies
  • 0 views

Hi ,

    I have created an interface using rich text field components to display text as mentioned below.

Task Details

1. attribute1: Text1

2. attribute2: Text2

3. attribute3: Text3

4. attribute4: Text4

Now the requirement is to generate this text as it is displaying in the interface using expression rule (for sending to another system using rule input). Is there any way or function in Appian to create listed text item like above mentioned using expression rule.

Any suggestions would be really appreciated.

Thanks in advance.

Pradeep.

7 replies

stefanhelzle0001
Brainy
October 18, 2023

What do you mean with "for sending to another system using rule input"?

And that text formatting depends on what format the other system expects.

October 19, 2023

[mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05]

I have to send this text

Task Details

1. attribute1: Text1

2. attribute2: Text2

3. attribute3: Text3

4. attribute4: Text4

as an input(parameter) to another system. Its kind of description text i need to get using expression rules in listed text format similar to what we get in interface using rich text field component.

stefanhelzle0001
Brainy
October 19, 2023

OK. But what does all of this mean? Is it about the bold text format, about the numbered list?

Try to explain this like to a 5 year old!

https://stackoverflow.com/help/how-to-ask

codeblog.jonskeet.uk/.../

mathieud0001
Brainy
October 19, 2023

Technically you should send the data with a proper structure (1-n relationship) and let the other system worry about the rendering in their frontend. If you don't/can't do that, you could try generating some HTML to send to them. They should be able to display that without having to do anything.

October 19, 2023

Thanks[mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05] [mention:f5e81b8502fa4e77ad12697686a4fc56:e9ed411860ed4f2ba0265705b8793d05] for the reply.

@stefan Helzle

we have generated a string text {attribute1: Text1; attribute2: Text2; attribute; Text3; attribute4: Text4}.
In the interface using rich text field list item i have listed the text as mentioned above in the question. But i need to generate the same text in list items format using expression rule. So, for that i asked is there any function/way for listing text items in expression rule.

I have completed the requirement using split and for-each function, for which i had asked for suggestion yesterday. 

stefanhelzle0001
Brainy
October 19, 2023

Sorry, maybe I have a bad day, but I still do not understand what you want to achieve ... can you help me with this?