Page 1 of 1

setting label visible = False with javascript

Posted: Fri Feb 13, 2015 10:54 am
by Andre Hoefs

Hi,

a label is filled as a result from my rest-service

i'd like to set the visible-property of a label to false if the label text is"undefinded".
I tried the following:

if ($('#zitat').text=="undefined") {$('#zitat').attr('visible',false);}

But it doesn't work....


setting label visible = False with javascript

Posted: Fri Feb 13, 2015 5:10 pm
by Evgene Karachevtsev

Hello Andre,

Could you please clarify, for what event of what component do you add your js code? Maybe this link could be useful for you http://devcenter.appery.io/documentat...


setting label visible = False with javascript

Posted: Sat Feb 14, 2015 1:05 pm
by Andre Hoefs

Hello Evgene,

thank you!
The link was very helpful! :-)