First Time Open Script Question

Avatar

Avatar

catherine26

Avatar

catherine26

catherine26

03-11-2011

I received a PDF form that I didn't create and the way that it is setup is that each text box has a script under it I believe its the FirstTime value script so when the form is opened the text box displays the wording.  My question is...is there a way or script where I can have one word underline??  When I try it with just using the button it underlines the whole thing.  Any help on this a greatly appreciated.

View Entire Topic

Avatar

Avatar

pguerett

Avatar

pguerett

pguerett

04-11-2011

You are loading richtext into the field so it is not as easy as setting the rawvalue like you have above. You will have to create an xHTML equivalent of what you want to load and then load it into the field when you are ready. The easiest way I have found to do this is to create what I want in a field then to get what the xHTML that represents that do a console.println(fieldname.value.exData.saveXML(); This will copy the xHTML to the javascript console. Then you can see what it looks like and adjust as you see fit .....when you are ready to load it again you would use fieldname.value.exData.loadXML(string that holds the xHTML, 1, 1); The two other paraneters that you pass determine whether to concate with what is there or overwrite it ...this is documented in the loadXML command.

Hope that helps

Paul