Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
Trigger formTemplate Button from tvOS Remote (iPhone)

I have a formTemplate and when the user starts typing, the keyboard opens on the iPhone for faster typing. How can I make the button in the formTemplate triggered by the "iphone Enter button"? Is there any eventListener or similar?

function emailTemplate() {

   var template = "
    <document>
      <formTemplate>
    
        <banner>
            <description>Enter email for access</description>
        </banner>

        <textField id='email' keyboardType='emailAddress'>Your email</textField> 

        <footer>
           <button>
              <text>Submit</text>
           </button>
        </footer>

      </formTemplate>
    </document>

   ";
    
   var templateParser = new DOMParser();
   var parsedTemplate = templateParser.parseFromString(template, "application/xml");
   var loading = loadingTemplate();
   loadingScreen);
   pushPage(parsedTemplate, loading);
    
   var email = parsedTemplate.getElementById("email");
   parsedTemplate.addEventListener("select", function() { submit(email); });
    
}
    
function submit(textField) {
   var keyboard = textField.getFeature('Keyboard');
   var email = keyboard.text;
    
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!