Use can use this script for getting subject from textfieldvar myDoc = event.target;var address = "";var subject = TextField.rawValue,myDoc.mailDoc({bEmpty: true,cTo: address,cSubject: subject,csubmîtAs: "PDF"});
Hi,Instead of writing Script in Change event, write it in full event.Beofre that make the Field, limit length - Max Chars 3. and in full event write xfa.host.setfocus(TX17);