Hi Anjali,
In your cusom.scss file put this class
.title-mandatory:after { content: '*'; display: inline-block; font-size: 12px; color: #FF7687; line-height: 20px; vertical-align: top; padding: 0 5px;}
use a lable for yout input field and put this class title-mandatory to the label
Hi Anjali
Take a look at this; it has an brief explanation:
https://community.mendix.com/link/space/ui-&-front-end/questions/109076