cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

javascript in adobe forms

Former Member
0 Likes
1,496

Hi experts,

I call a web service in javascript when button is clicked. Please help check the following code:


try {
xfa.host.messageBox("welcome");  //pop-up
var myRequest={Celsius:"50"};
var service = SOAP.connect( "http://www.w3schools.com/webservices/tempconvert.asmx?wsdl");
xfa.host.messageBox("Connected" + service); //pop-up "Connected[objectSoapService]"
for(var i in service) xfa.host.messageBox(i);    //nothing
var response = service.CelsiusToFahrenheit(myRequest);   
xfa.host.messageBox("Called");
xfa.resolveNode("TextField1").rawValue = response ;
} catch(e) {
xfa.host.messageBox(e.toString());    //pop-up "TypeError:service.CelsiusToFahrenheit is not a funciton"
}

Thanks.

View Entire Topic
Former Member
0 Likes

I have been facing some problem using javascript with adobe acrobat.

My requirement is such that I have to validate a text field so that it contains only alphabets and then displays a message. The text field should go blank then and the focus should return to the text field.

Please provide me a solution for this.