Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Displaying text of components not working

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Displaying text of components not working

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

Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Displaying text of components not working

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Displaying text of components not working

Hi Christine,

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

What component value do you want to read?

Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Displaying text of components not working

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

Return to “Issues”