Calling web service when the form initiated

Discussion created by joelau on Mar 13, 2018
Latest reply on Mar 27, 2018 by fhunth

I have a simple web service method, the method just return a single string. i want to call this web service when the form initiated and put the string as a value of textbox control on the form.


As i know i should use the custom javascript on the form, but i have no idea the syntax of javascript to call web service.


Anyone can provide the sample code for reference? 


Thanks a lot.