cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Asterisk to Textfield using Javascript

0 Kudos

Dear Experts,

I want to add the asterisk to a textfield based on condition using javascript code. I have made it mandatory but dont know how to add Asterisk to the label using javascript.

Can you please give me advice on the same?

Best Regards,

Bhupinder

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Bhupinder

Say the TextField is named 'Text1':

Put the following code in the SubForm that contains the TextField in event form:ready (in FormCalc only):

$.Text1.value.#text = Concat("*", $.Text1.rawValue)

Best regards

Shai