In the xml windows i've noticed the assigned style is stored in the usehref tag.
However if I try somthing like that in the "click" event of a button :
TextField.usehref = ".#som($template.#subform.designer__stylesheet.TextFieldStyle)";
This makes the TextField disappear.
Perhaps i'm doing something wrong, or maybe I have to somehow reload the layout ?
I think I was not clear enough. Basically I have a textfield assigned with a style, let's say TextFieldStyle1. What I want is to programmatically assign the textfield another style, say, TextFieldStyle2.
How can I achieve that ?
Many thanks !
There is no way to change the usehref property at runtime I believe as it is only referenced once at the template load time (the moment when the form is opened).