on 11-27-2015 10:39 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.