Skip to main content
Nintex Community Menu Bar

Get value from custom javascript

  • March 9, 2018
  • 4 replies
  • 127 views

Forum|alt.badge.img+4

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;
}

4 replies

Forum|alt.badge.img+7
  • March 10, 2018

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


Forum|alt.badge.img+5
  • October 11, 2018

hi Joe,

refer to this link

 

regards,

race eka patria


  • November 19, 2018

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.


  • November 19, 2018

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.