Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session

How do I iterate through a subform structure ?

Avatar

Former Community Member

  I have subforms which have individual fields which I have to set access either open or protected.  Instead of listing each single field, is there a way I can use a for loop to iterate through the subform and set each field access as needed?

6 Replies

Avatar

Former Community Member

If you just set the access on th esubform then all children in that subform will inherit that paroperty

Paul

Avatar

Former Community Member

I tried that.

Subform.access = “protected”; didn’t work.

Avatar

Former Community Member

What is the target version of your form?

Paul

Avatar

Former Community Member

I don’t understand your question. What is a target version?

Avatar

Level 10

The target version describes for what Acrobat/Reader version you form is designed.

You can set the target version in Designer unter the form properties > defaults > choose Target version.

The higher the target version the more functions are available for the form.

Avatar

Former Community Member

That’s unfortunate because we aren’t using Acrobat/Reader to read the forms. We’re using a product called FormStream Filler. Anyway, I stumbled onto a technique used in a previous form here. I don’t understand everything about it, but I was able to replace enough code to get it to work with my form. Suffice to say it has a lot to do with nodes.

Thanks for answering.