Hi,
I am using a HTML text box to append updates in a sharepoint form and to make it look better need to bold the user name and date before displaying the text.
Below the RichText Box is a HTML.Text box with this code:
If(Not(IsBlank(richTextUpdates.HtmlText)),User().FullName & " " & Now() & " " & richTextUpdates.HtmlText & Char(13))& ThisItem.Updates
Is there a way to within this code to make username and date bold ?
I used this video for append text workaround - https://www.youtube.com/watch?v=hzLEecSpmFo
Thank you in advance
Solved! Go to Solution.
Hi @Mo_Islam ,
Based on the needs that you mentioned, I agree with @mdevaney 's thought almost. I think the <b> HTML Tag could achieve your needs.
Firstly, in order to the render the HTML text, please consider add a Html Text control in your app to display the "Updates" value. The screenshot of my app as below:
Set the HtmlText property of Html Text control to following:
"<b>" & User().FullName & "</b> <b>" & Now() &"</b>" & Char(13) & richTextUpdates.HtmlText
On your side, you need to set the HtmlText property of the Html Text control to following:
If(
!IsBlank(richTextUpdates.HtmlText),
"<b>" & User().FullName & "</b> " & "<b>" & Now() & "</b>" & Char(13) & richTextUpdates.HtmlText & Char(13)
) & ThisItem.Updates
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
Like this...
If(Not(IsBlank(richTextUpdates.HtmlText)),"<b>"&User().FullName & " " & Now() & "</b> " & richTextUpdates.HtmlText & Char(13))& ThisItem.Updates
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hi @Mo_Islam ,
Based on the needs that you mentioned, I agree with @mdevaney 's thought almost. I think the <b> HTML Tag could achieve your needs.
Firstly, in order to the render the HTML text, please consider add a Html Text control in your app to display the "Updates" value. The screenshot of my app as below:
Set the HtmlText property of Html Text control to following:
"<b>" & User().FullName & "</b> <b>" & Now() &"</b>" & Char(13) & richTextUpdates.HtmlText
On your side, you need to set the HtmlText property of the Html Text control to following:
If(
!IsBlank(richTextUpdates.HtmlText),
"<b>" & User().FullName & "</b> " & "<b>" & Now() & "</b>" & Char(13) & richTextUpdates.HtmlText & Char(13)
) & ThisItem.Updates
Please consider take a try with above solution, then check if the issue is solved.
Best regards,
Thank you,
I used this line of code to modify the Default value of my DataCard and it works. The previous line is not necessary for my circumstance (and many others just need this line)
If( !IsBlank(richTextUpdates.HtmlText), "<b>" & User().FullName & "</b> " & "<b>" & Now() & "</b>" & Char(13) & richTextUpdates.HtmlText & Char(13) ) & ThisItem.Updates
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
261 | |
130 | |
86 | |
86 | |
68 |