Expand my Community achievements bar.

Help with script_presence

Avatar

Level 7

This I try to accomplish is:

If I have more than one instances I will like the FeldA to become Visible for all instances1, 2, 3,   and so on...

On Layout ready event I use the script below but the fieldA appears only for instance No.2 and below but NO for instance No1!

if

(this.parent.index >=1) {

FieldA.presence="visible";

}

Thank you

2 Replies

Avatar

Level 10

The index is zero-based so try:

(this.parent.index >=0)

Avatar

Level 7

Hi Jono, thanks for your reply!

Your suggestion does not work because when I open the form FieldA is visible!

This which I want it is, when you open the form. FieldA to be hidden.

But when you click the button to add an instance I will like the Field A to become visible for all instances!

Thanks