In my fillable pdf form, i have 2 text box. They are A and B. If i write anything in the box A then i want the box is B automatically filled by 100. Can you please write this code for me?
Hi @Randy Lucas , thanks for your comment! The JavaScript code you're asking for is already included in the video. I would recommend watching the video in 1080p and pausing at the relevant part to get the code you need.
Thanks so much I have been trying to solve this problem for 6 Hours
how about the other way around when you select from the drop down it will fill the other boxes
You need to create IF-Else statements for every items in your drop down list and give reference to text field(s) so it can populate accordingly.
In my fillable pdf form, i have 2 text box. They are A and B. If i write anything in the box A then i want the box is B automatically filled by 100. Can you please write this code for me?
I am unable to read the JavaScript. Do you have the text for this?
Hi @Randy Lucas , thanks for your comment! The JavaScript code you're asking for is already included in the video. I would recommend watching the video in 1080p and pausing at the relevant part to get the code you need.
@@sarservices Thanks! that worked!
Here it is
if (/^IstGrp/. test (event.source.name) )
var aValues = this.getField ("LstGrp") .getArray () map (function (a) (return a.valueAsString;)) ;
var aList = aValues. filter (function (a) (return (a.length > 0) ;}) ;
aList.unshift (" ");
event.target.setItems (aList) ;
}