xfa.layout.relayout() - Only relay Static text with floating fields | Community
Skip to main content
January 29, 2020
Question

xfa.layout.relayout() - Only relay Static text with floating fields

  • January 29, 2020
  • 0 replies
  • 728 views

Hello, 

 

I have a javascript on the exit of a field to populate some floating fields I have formated in a certain way..

Script below.

 

Problem is when I run the "xfa.layout.relayout();" it cuases a bunch of other issues.

How can I only update the floating fields within static text without resetting the visibility of other objects.

 

Thanks

 

if (!this.isNull)
{
var num = String(this.rawValue);
num = num.replace(".", "#");
num = num.split("#");
this.parent.A.rawValue = "$";
this.parent.B.rawValue = num[0];
this.parent.C.rawValue = num[1];
}
else
{
this.parent.A.rawValue = "";
this.parent.B.rawValue = "";
this.parent.C.rawValue = "";
}

if (this.parent.C.rawValue == "00") {
this.parent.C.rawValue = "";
}
if (this.parent.C.rawValue == "Empty") {
this.parent.C.rawValue = "";
}
if (this.parent.C.rawValue > 99) {
this.parent.C.rawValue = "";
}
xfa.layout.relayout();

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.