Hi @Anonymous,
I believe you want to display the message in your profile, correct?
There are 2 way depending on the look you want to have.
You can either create a text field inside your form and just show that inside the form. Making it read only and hide the label, depending on what you want to achieve. As the field will be empty in the beginning you can use jQuery to hide it. Even better .remove() it to get the slightest of an performance improvement.
const oneOfYourFields = $('#ProfileFormView > div.tab.clearfix > div > div > fieldset:nth-child(2)');
The second option would be to .hide() the field always and if the field !== null display the .val() inside a textbox which you insert on the profile page after the description for example.
//If to check your field inside the form
if (yourField.val() !== "") {
// Adding a paragraph with the text and styling it a bit
$('<br><br><p class="xrm-attribute-value" style="color: #3cb371">Your Message</p> <br><br>').insertAfter('#headerProfile');
// Hiding your field
$('#mainContent > fieldset:nth-child(8)').hide();
}
Hope that helps.
Please mark the post as solution if it solves the problem. Consider a thumbs up if it helps you.