You can do it with pure CSS:
1. To put * after the text box:
Put *
in the Field appearance\explanation text
and in HTML envelope\content before you can add
<style>
.explanation-text
{
display:inline-flex !important;
}
</style>
![Image Text](https://image.prntscr.com/image/tHOynYPNTz_j4HlD6YudHQ.png)
2. If you want to put * next to the caption it is even easier:
assuming you field called CustomID in HTML envelope\content before you can add:
<style>
label[id*='CustomID']::after {content: "*"; color:red;}
</style>
![Image Text](https://image.prntscr.com/image/x-OScPjaSZ2lB7oIxoj0hQ.png)