Skip to main content
Nintex Community Menu Bar

Get value from custom javascript

  • Mar 9, 2018 3:46 AM UTC
  • 4 replies
  • 161 views
  • Translate All

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
  • Nintex Partner
  • Mar 10, 2018 6:02 AM UTC

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

Translate

Forum|alt.badge.img+5
  • Oct 11, 2018 1:18 PM UTC

hi Joe,

refer to this link

 

regards,

race eka patria

Translate

  • Nov 19, 2018 5:02 AM UTC

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.

Translate

  • Nov 19, 2018 5:02 AM UTC

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.

Translate