cancel
Showing results for 
Search instead for 
Did you mean: 

How to make a string Bold in Adobe Forms

Former Member
0 Kudos

Dear Experts,

I have a requirement that I need to make a string value(half) bold for  adobe form dynamically .

Example : My scenario is like this

  String : Bangalore,Karnataka.

I want to make string as Bangalore,Karnataka.

Please help me to solve this issue  ASAP

Thanks,

Giriprasad

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Giri,

Hope you are doing good...

From the requirement i could understand, the text field which hold's the  data need to be in "BOLD" .

For Example i have taken the text field and changed the properties of the element to readonly .

then we need to javascript coding on the form initialize event to make it " Bold".

1) we need to read if the text field is holding any data.

   

    var length = xfa.resolveNode( " data.text.rawValue <> 'null' " );

2) Then we need to change the data in the text field to bold.

xfa.resolveNode ( " data.text ") ="bold";

Best Regards,

Praveen PVR.

konchada_saikrishna
Active Participant
0 Kudos

Hi Giriprasad,

1) If that's a static text you could do it at form design time.

2) If that's dynamic text and if you know which data to be in bold, send it in a separate field from your driver program, on the form instead of normal field use floating field and set that a bold considering the bold word always comes in a specific sequence etc.

3) If its entirely random pass the formatted text as an html content to form, on form  present it as a richtext info on this is available in the links posted by Christopher above.

Cheers,

Sai

Former Member
0 Kudos

Hi Sai,

Thanks for your reply.

My requirement is dynamic display.I need to design one label and need to display some text as bold and some text as normal dynamically.

Example: Milk,Curd,Cheese,Butter etc.

like above I need to display in label dynamically.

Please suggest how to display like that step by step process.

Its an urgent requirement Please help to achieve this.

Great Thanks in advance.

Thanks,

Giriprasad

0 Kudos

Hello GiriPrasad,

Do you solved this?

if yes, please tell me how can i do it. thank you.

regards

siva

ChrisSolomon
Active Contributor
0 Kudos

You will likely have to do this in your "on load" event or similar as the form is initialized. If you want to do this as someone types, then you would have to capture it in another event as the user either types or leaves the field. Several answers here...

https://www.google.com/search?q=adobe+javascript+bold+text&ie=utf-8&oe=utf-8