Hi,
I have a paragraph field in my interface, I am sending the user comments from this field into email. The line breaks are not retained and all the text is displayed in a single line.
So I have figured out that, if I can store the expression type of the data into local variable, I can replace the char(10) with </br> while passing into email.
I need help in storing the expression format of the value. How can I do that?
Discussion posts and replies are publicly visible
Store the value of the paragraph field in a variable, and when you need to use it , replace the value with an expression rule
For example
Interface :
a!localVariables( local!texto,a!formLayout( label: "Form", contents: { a!sectionLayout( contents: {} ), a!sectionLayout( label: "Section", contents: {} ), a!paragraphField( label: "Paragraph", labelPosition: "ABOVE", saveInto: {local!texto}, refreshAfter: "UNFOCUS", height: "MEDIUM", validations: {} ) , /*This is only for testing purposes in order to check how it works*/ a!paragraphField( label: "Paragraph", labelPosition: "ABOVE", saveInto: {local!texto}, refreshAfter: "UNFOCUS", height: "MEDIUM", validations: {}, value: rule!D_formatText(local!texto)--> This is the expression rule ) }, ))
Expression rule:
a!localVariables( substitute(ri!texto, fn!char(10), "<br>"))