cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically to Bold font through coding

Former Member
0 Kudos

Hi,

I am working for PDF Printforms, I want to make one Text field caption and Value dynamically to bold font if second field value = "X", If second field value is not X,then print first field caption and value as Plain.

Please help me.

Thanks

Bhuvana

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hi Bhuvana,

you can use the following javaScript for the initialize event of your textField.

Your form must be generated as dynamic.

setFontWeight(SeconField.rawValue);

function setFontWeight(pValue) {
  if (pValue=="X") {
    this.font.weight="bold";
    this.caption.font.weight="bold";
  } else {
    this.font.weight="";
    this.caption.font.weight="";
  }
}

Regards

Michal

Former Member
0 Kudos

Hi,

Thanks for information.

Thanks

Bhuvana

Answers (1)

Answers (1)

Former Member
0 Kudos

This is resolved