cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
joelau
Nintex Newbie

Get value from custom javascript

Hi all, if i have a custom javascript which is call a web service and return a string "HelloWord", how can i display the string to the form label control? thanks.

function fun() 
{
   var data="hello";  
   $
.get("http://localhost/ws/service.asmx/HelloWord", function(response) {
            
data = response;  
      
}).error(function(){ 
      alert
("Sorry could not proceed");
      
});   
   return data;
}
Tags (2)
0 Kudos
Reply
4 Replies
ranjca
Nintex Newbie

Re: Get value from custom javascript

NWF$("#" + yourcontrolName).val(YourValue);

0 Kudos
Reply
likki1234
Nintex Newbie

Re: Get value from custom javascript

Hi Ranjith Can you tell me in Javascript how to block a user from submitting the form if some fields are not filled in?

i tried event.preventDefault(); but this hang at saving dialog and user cannot go back and fill the form and retry.

0 Kudos
Reply
reiva13
Nintex Newbie

Re: Get value from custom javascript

hi Joe,

refer to this link

 

regards,

race eka patria

0 Kudos
Reply
likki1234
Nintex Newbie

Re: Get value from custom javascript

Hi Reva Can you tell me in Javascript how to block a user from submitting the form if some fields are not filled in?

i tried event.preventDefault(); but this hang at saving dialog and user cannot go back and fill the form and retry.

0 Kudos
Reply