You are viewing limited content. For full access, please sign in.

Question

Question

how Can I use the auto fill button to validate an item number and make appear a message if they do not find it

asked on February 23, 2015

I tried by using this code

 

q148 is the message text to show

q149 is a validation filed that the lookup will filled if it found something

 

I used the similar code for validation of a PO number but by usingg a button I created. but for this autofield button that is come by the validation of 2 lookup field and Inside a table field, I cannot make it work

$(document).ready(function () {
   	$('#q148').hide();
  	$('#q149').hide();
 // $('#q125 input').click(function () {
// $('.autofill').click(function () {
  	$('.autofill input').click(function () {        
    	setTimeout(function() {      		 
        	if ($('#q149 input').val()> "0"){         
        		$('#q148').hide();          
        	}
        	else
          	{
          		$('#q148').show();              	              	
      		}
    	}, 300);    
      })
})

 

0 0

Replies

replied on February 24, 2015

I did not figure why it is not working with a button appear from the forms versus one that work with a button create by me.

 

the only difference is maybe because the one from Forms is in a table versus the other one is not in a table field

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.