Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

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

Avatar

Avatar
Level 1
Nathman_F
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
Nathman_F
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
Nathman_F
Level 1

29-01-2020

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();

Accepted Solutions (0)

Answers (0)