cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Unable to get the value from web service

I put below script to "Form Setting" --> "Custom Javascript", supposed the web service method abc will return a string "Hello World", i want put the return value to textbox control named txtHello, but i got an alert msg "Sorry could not proceed" when the form first load. anyone have idea? thanks.

fun();

function fun()
{
    var data="hello";
    $.get('http://myweb/web_service/nintex.asmx/abc',{},function(response)
    { data = response;
    }).error(function(){
    alert("Sorry could not proceed");
});

NWF$("#" + txtHello).val(data);
}

0 Kudos
Reply