Error javascript

I have one form, and I copy it to a different artboard so that it makes 3 forms, a smartphone, a tablet, a PC, there isa button that contains javascript when submitted the data from the form is transposed, but when it is exports in the media the javascript in smartphones and tablets does not work, while the javascript in PC works, how the data the javascript + can function in all those media,