Submit Using Enter/Return KeyPress
the project on i'm working has several forms (product selection, shipping information, billing information, , surveys). make these sections more user friendly, have function called (to submit form) whenever customer presses enter/return key. looked key listeners solve problem, i'm having difficult time following of steps, , technique seems bit excessive need do. there actionscript tack on each 1 of input texts detect enter/return key presses , call submit function on such events? since of forms don't have many input text boxes, wouldn't take long me copy , paste code few times. if me out little problem, appreciate it. in advance.
attach code invisible button on stage button:
on (keypress "<enter>") {
//submit code here
}
on (keypress "<enter>") {
//submit code here
}
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment