Page 1 of 1

Displaying text of components not working

Posted: Mon Apr 22, 2013 5:07 am
by Christine Stringfield

I'm trying to retrieve the text of a component, however I'm not sure what the proper syntax should be.

I have tried:

Appery('statusBy').text()
Appery('statusBy').val()

However, both produce no text. I followed the examples here http://docs.appery.io/javascript-api/ but I am not able to retrieve text values of components.


Displaying text of components not working

Posted: Mon Apr 22, 2013 6:36 am
by Maryna Brodina

Hello! What component value you want to retrieve? Please check component name - it's case sensitive.


Displaying text of components not working

Posted: Mon Apr 22, 2013 3:41 pm
by Christine Stringfield

Hello, I did confirm that the case was correct, and it still does not work.


Displaying text of components not working

Posted: Mon Apr 22, 2013 4:06 pm
by Kateryna Grynko

Hi Christine,

For Label component use function text().
For input, textarea, toggle, etc use function val().

What component value do you want to read?


Displaying text of components not working

Posted: Mon Apr 22, 2013 4:38 pm
by Christine Stringfield

Ok thanks that is helpful. I must have just needed to put my Javascript in a different location. All is working now. :) Thanks!