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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

HOW TO SET WIDTH FOR THE FIELD IN REPEATING INSTANCE / SUBFORM

Avatar

Level 4

I am stuck with the code and was wondering if someone has any suggestion.

I have a following code that is working and accomplishes what I want; Hides presence of the subform devP4, every time I add new instance.

if

(SubForm1.tblEst.estRow1.txtEst.rawValue.length > 4)

{

for

(var i = 0; i < 4; i++){

var oFisDevice = xfa.resolveNode("Form.subMain.SData.SDev.indVice["+i+"]");

oFisDevice.DDetails.devRes.devP4.presence = "hidden";

}

xfa.layout.relayout();

 

}

 

What I cannot figure out is how to set width of the field called txtComments under subform devP6 to 9in, at the same time.

The code I have now is below. It works but sets the width to only first instance. What am I missing?

xfa.resolveNode("Form.subMain.SData.SDev.DevP6.txtComments").w = "9in";

Thank you.

0 Replies