hi,
i have 2 fields. if entered in first one, want block access field 2 , change background color. here code i'm using on exit event of first field :
if (this.rawvalue != null) {
xfa.resolvenode("form1.subform1.field2").border.fill.color.value = "192,192,192";
xfa.resolvenode("form1.subform1.field2").presence = "invisible";
}
else {
xfa.resolvenode("form1.subform1.field2").presence = "visible";
}
however, when enter in first field, second 1 becomes inaccessible, background color doesn't change.
however, if use following code (that's not making field2 invisible when entered in field1), background color indeed changes.:
if (this.rawvalue != null) {
xfa.resolvenode("form1.subform1.field2").border.fill.color.value = "192,192,192";
}
else {
xfa.resolvenode("form1.subform1.field2").presence = "visible";
}
anyone knows how can make field inaccessible , change background color?
thanks in advance,
i have 2 fields. if entered in first one, want block access field 2 , change background color. here code i'm using on exit event of first field :
if (this.rawvalue != null) {
xfa.resolvenode("form1.subform1.field2").border.fill.color.value = "192,192,192";
xfa.resolvenode("form1.subform1.field2").presence = "invisible";
}
else {
xfa.resolvenode("form1.subform1.field2").presence = "visible";
}
however, when enter in first field, second 1 becomes inaccessible, background color doesn't change.
however, if use following code (that's not making field2 invisible when entered in field1), background color indeed changes.:
if (this.rawvalue != null) {
xfa.resolvenode("form1.subform1.field2").border.fill.color.value = "192,192,192";
}
else {
xfa.resolvenode("form1.subform1.field2").presence = "visible";
}
anyone knows how can make field inaccessible , change background color?
thanks in advance,
you close... try this:
if (this.rawvalue != null) {
textfield2.border.fill.color.value = "192,192,192";
textfield2.access = "readonly";
}
else {
textfield2.border.fill.color.value = "255,255,255";
textfield2.access = "open";
}
you're making field invisible - you're not going see new background colour if can't see field. setting access "readonly" makes field inaccessible, leaves visible can see new background colour.
--
stevex
adobe systems
if (this.rawvalue != null) {
textfield2.border.fill.color.value = "192,192,192";
textfield2.access = "readonly";
}
else {
textfield2.border.fill.color.value = "255,255,255";
textfield2.access = "open";
}
you're making field invisible - you're not going see new background colour if can't see field. setting access "readonly" makes field inaccessible, leaves visible can see new background colour.
--
stevex
adobe systems
More discussions in LiveCycle pre-ES (6.x and 7.x) discussions
adobe
Comments
Post a Comment