Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to set values of repeatable textfields???

Avatar

Former Community Member

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";

}

1 Reply

Avatar

Former Community Member

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