I have a flow that converts the data from powerapps into a html script then converts to pdf. The issue is if someone enters multiple lines of text in a field in the app like below
this is a test
space entered here
and here
and here
and here
When it is converted to html, it puts all the data on one line. Looks like this
this is a test space entered here and here and here and here
This is a section of html that i am using in the flow, Recommendations is the name of the field
<table style="table-layout: fixed; height: 123px;" width="578">
<tbody>
<tr style="height: 22.3375px;">
<td style="width: 553.8px; height: 22.3375px; text-align: left;"><strong>Recommendations:</strong></td>
</tr>
<tr style="height: 54px;">
<td style="width: 553.8px; height: 54px;><textarea rows="5" cols="50">',variables('objectList')?['Recommendations'],'</textarea></td>
</tr>
</tbody>
</table>
The text shows correctly in powerapps and sharepoint just not once converted to html. Any advice would be much appreciated
Hi ChengFeng, Is there any other variations of that syntax you think may work?
Hi ChengFeng, Is there any other variations of that syntax you think may work?
Hi ChengFeng,
Unfortunately that also show ‘expression invalid’
Hi @Matt383 ,
Please try:
<td style="width: 553.8px; height: 54px;>',@{replace(variables('objectList')?['Recommendations'],decodeUriComponent ('%0A'),'<br>')}</td>
Best Regards,
ChengFeng
Thanks for getting back to me ChengFeng. I have tried both below, however, it says the expression is invalid.
<td style="width: 553.8px; height: 54px;>',replace(variables('objectList')?['Recommendations'],decodeUriComponent ('%0A'),'<br>')</td>
<td style="width: 553.8px; height: 54px;>',replace(variables('objectList')?['Recommendations'],'decodeUriComponent ('%0A'),'<br>')</td>
Hi @Matt383 ,
Please replace the line break with "<br>" in flow, for example:
replace(variables('objectList')?['Recommendations'],decodeUriComponent ('%0A'),'<br>')
Best Regards,
ChengFeng