on 11-20-2006 5:13 PM
Hello everyone,
I have a table in an interactive form.
Subform10 -
| - Subform 11 -
| - TextField1[0]
- TextField1[1]
- TextField1[2]
Subform 10 is the Table Content and Subform 11 is the Table Row. I wanted to fill the background color of these fields with diferent colors, depending on the rawValue of the TextField itself. How can i do this, and in wich event should i put the code ?
I tried the fillColor but don't know where to put it.
thank you in advance,
Nuno Santos
Message was edited by:
Nuno Santos
hi Nuno,
I tried to replicate your problem in my system, and what I suggest you is that in the this is what has to be in the script editor:
Setting for the script editor:
Show: initialize
Lanuage: formcalc
Run At: client
for example for textfield1[0} to have to code something like this:
$.fillColor="150,130,33"
here "150,130,33" is the color defined.
for example for textfield1[1] to have to code something like this:
$.fillColor="150,130,33"
for example for textfield1[2] to have to code something like this:
$.fillColor="150,130,33"
Or if you want to go for javascript then use
TextField1.fillColor = "150,130,33"
This would solve your problem.
Thanks,
kris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
You can assign the color value in form ready event.Code the script on subform11.
Thanks and regards,
Pavan Meda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.