Skip to Content
avatar image
Former Member

How to add Asterisk to Textfield using Javascript

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 01, 2015 at 07:09 AM

    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

    Add comment
    10|10000 characters needed characters exceeded