help on using the controls

Community based support for the Digium Phone Application Programming Interface (API).

Moderators: jwitt, sruffell, malcolmd, Moderator

help on using the controls

Postby wallnutmonkeys » Tue Jul 09, 2013 7:35 am

Hi, i'm playing with various controls on my phone here and there seems to be something that Im not doing right. I created a basic app that simply creates 3 text controls + 3 input controls for the user to enter 3 values. When the user has entered the values and presses the check mark button on the phone, I want to do something with the values entered by the user. Could someone point me to the right class to use? I was looking for some kind of "onOK" callback function that I could implement to do whatever I need to do with the entered values. If anyone know where I can implement this.

thanks in advance

Wallnut
wallnutmonkeys
Newsterisk
 
Posts: 28
Joined: Thu Feb 10, 2011 9:52 pm

Re: help on using the controls

Postby wallnutmonkeys » Tue Jul 09, 2013 8:00 am

I think I have to look at the new sample (genericFormExample).
wallnutmonkeys
Newsterisk
 
Posts: 28
Joined: Thu Feb 10, 2011 9:52 pm

Re: help on using the controls

Postby sruffell » Wed Jul 10, 2013 8:51 am

wallnutmonkeys: Yes, I think the sample is what you want to look at. In the processSubmit callback function you can see how to access the members of the form and take whatever action you want. The sample simply prints them to the debug console.

If something is unclear in the example or you would like me to add anything else to it please let me know. Thanks, Shaun
sruffell
Oldsterisk
 
Posts: 200
Joined: Fri Jan 07, 2011 2:02 pm

Re: help on using the controls

Postby wallnutmonkeys » Fri Jul 12, 2013 5:54 am

ok thanks shaun, the genericform sample helped a lot.
wallnutmonkeys
Newsterisk
 
Posts: 28
Joined: Thu Feb 10, 2011 9:52 pm


Return to Digium Phone API

Who is online

Users browsing this forum: No registered users and 1 guest