Hi,
Do you mean change label text?
Then use code:
pre
Apperyio('labelNAme').text('some New text');/pre
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi,
Do you mean change label text?
Then use code:
pre
Apperyio('labelNAme').text('some New text');/pre
Thank you Alena, that did the work. However there is one more thing I need to sort out.
I created the translator app from your tutorials, but when I hit the translate button without entering any text, it gives me an error "NO QUERY SPECIFIED. EXAMPLE REQUEST: GET?Q=HELLO&LANGPAIR=EN|IT".
I need to show the user via a JavaScript alert that the input field is empty. How can I achieve this?
Also, how can I display "NO QUERY SPECIFIED. EXAMPLE REQUEST: GET?Q=HELLO&LANGPAIR=EN|IT" with another text of my choice on the "label" part?
No Suggestions???
Hello devapp,
Sorry for delay, we are working on it and will get back to you with the update.
Hello,
Here is a brief plan to implement this logic:
Delete current "translate" button click event handler.
On "translate" button click add new event handler with action "Run javascript".
Populate it with following JS code:
pre
//Where "inputName" is your input component name.
var input = Apperyio("inputName");
var inputValue = input.val();
if(inputValue.trim() == ""){
alert("Input has empty value");
}
else{
//Where "serviceName" is your service datasource name that you need to invoke if input value is not empty.
serviceName.execute();
};
/pre
Regards.
Thank you Yurii Orishchuk