HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... How to change object properties at runtime?
How to change object properties at runtime?
  View type:
Hi all,
is it possible to change object properties at runtime?

For example: I would change the balloon text using a onclick event of my form button.

I see that it is possible in javascript using g_arVars["var_name"] (for global variable) and
g_arSlideVars["var_name"] (for slide variable), but I don't know the correct syntax. I tried to write: g_arSlideVars["var_name"].text = "my text"; but it doesn't work.

Could someone help me please?

Angelo
 
Hi, Angelo,

If you mean object properties that are accessible through $OBJ_ID.propertyname then the things are bad - these properties are read-only.
Also variables are not linked with text objects - the only objects that have variables associated are Form objects.
The only objects where you can change/add or replace text are 2 TextBoxes: Simple and Relief. Use the corresponding object methods (please look at the help on these objects) to do that.
Subject:
Message options
No additional options