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 values of repeatable textfields???

Avatar

Level 2

Hİ everyone,

I m newbie in javascript coding . As you see I think my questions is simple. I have a form which has two different subform and one of them is flowed subform.and gets all data from a xml such as;

<Country.>Turkey</Country.>

<Country.>USA </Country.>

<Country.>UK </Country.>

<Country.>Germany </Country.>

...........

I tried to execute form layout, if there is no country name from the xml  it work for first repeatable textfield but it didn t work for the second repetable textfield and I realized that my coding was wrong because I equalized for just Country.rawValue not for Country[1].rawValue or Country[2].rawValue how I solve the Problem??

thanks everyone

if (!form1.Page1.ContactData.ContactAddresses.Address.Data.Country.rawValue)

{form1.Page1.ContactData.ContactAddresses.Address.Data.Country.presence

=form1.Page1.ContactData.ContactAddresses.Address.Data.ulke.presence="hidden";

}

0 Replies

Avatar

Level 2

Hi StormShark (Gökhan),

xfa.form.form1.sayfa.TextField1[2].presence =  "invisible"   this notation works fine for FormCalc but when you convert language to JavaScript it wouldn't work. If you need to use JavaScript please try this:

xfa.resolveNode("xfa.form.form1.sayfa.TextField1[2]").presence = "invisible"

Enjoy and don't forget to click my blog

murat

www.muratkuru.com.tr