Expand my Community achievements bar.

Hiding fields with same name

Avatar

Former Community Member

Hi,

I have a form built in ADOBE LC Designer ES. The form has multiple pages. I have some fields with the same name and distributed across subforms. Is there a way I can hide the fields using the common name or do I have to refernece each and every field to hide it?

Thanks,

Nakul

3 Replies

Avatar

Former Community Member

Each field has a unique name ...it will consist of its parent container (in your case it might be a page) and the fieldname. So to answer your question, no there is no command that will hide all occurances...you will have to cycle through and change each one by one.

Paul

Avatar

Level 7

Is the condition for hiding the fields the same in every case, i.e. a checkbox being checked? If it is, you could put the same script in each field:

if (checkbox1.rawValue == 1){

     this.presence = "hidden";

}

You would still have to either paste the script into each field or make it a function that gets referenced in each field, but at least it would be a copy - paste rather than having to type out the path to each field.