Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Change width of all textfields?

Avatar

Level 2

Hi,

Let's say that I have 10 textfields on my SubForm.

How can I change with javasctipt on initialisation of SubForm(s2) ALL textfields.w = "3in";

s2.w = "3in";

s2.Tekstveld2.w = "3in";

tnx.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

Assuming you don't have any other fields in your subform it would be as simple as ... assuming your subform was called Subform1.

for (var i = 0; i < Subform1.nodes.length; i++)

{

     Subform1.nodes.item(i).w

= "3in";

}

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi,

Assuming you don't have any other fields in your subform it would be as simple as ... assuming your subform was called Subform1.

for (var i = 0; i < Subform1.nodes.length; i++)

{

     Subform1.nodes.item(i).w

= "3in";

}