Page 1 of 1

Exchanging data from an element in html component to Appery and vice-versa

Posted: Mon Aug 24, 2015 3:02 am
by M&M

hi,

I have a html component on my page and in that html component, using JS code I want to read what is the text on a Appery Label on my page.

And also I need to be able to read the value of a form input element (which is in the html component) in Appery using JS. Whats the correct way to do this?

Thanks


Exchanging data from an element in html component to Appery and vice-versa

Posted: Mon Aug 24, 2015 10:54 am
by Serhii Kulibaba

Hello,

Please use JS below:

var input = Apperyio("inputName").val();

var label = Apperyio("htmlName").val();

here inputName - input's name, htmlName - name of the HTML component