Mark MB
Posts: 0
Joined: Wed May 27, 2015 7:34 am

How to change the text of a label component within the pop up???

Simple pop up question. Could not find anyone posting the same question so I think perhaps I am completely on a wrong track. I have page with a few input controls and I also created a pop up with a single label component to show a validation text. I like to reuse the same pop up for all input validations. I am able to display the pop up on the blur event but I like to be able to change the text of the label component within the pop up with relevant text. How do I change the text of the label component within the pop up? Thanks.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How to change the text of a label component within the pop up???

Hello Mark,

Sorry, I'm not sure I understand you correctly, could you please clarify - you want to call pop up with every change of the value of an input component? And the value of a label inside this pop up should be changed to the value of an input?

Mark MB
Posts: 0
Joined: Wed May 27, 2015 7:34 am

How to change the text of a label component within the pop up???

Sorry Let me simplify my question, I have one pop up named foo with a label component in it named label1. The label's text is set at design time to let's say "hello". I can open the pop up with the following JS:

Appery("foo").popup("open");

This works fine and the pop up shows up with text say "hello". However, I want to be able to change the text of the label1 to something else, let's say "how are you" before I open it. Ideally something like this (pseudo code):

foo.label1.text = "how are you";
Appery("foo").popup("open");

How can I do that? Thanks.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

How to change the text of a label component within the pop up???

Hello Mark,

Please change JS code:

foo.label1.text = "how are you";

to this:

Apperyio("label1").text("how are you");

Return to “Issues”