Alternative option for enabling and disabling subforms

Avatar

Avatar

satyal85833854

Avatar

satyal85833854

satyal85833854

15-08-2018

Hello,

I have used Alternative option to enable and disable Subforms during runtime depending upon input variable.

This is working fine in first page.

But from second page onwards the Option False is not getting triggered.

The problem is happening only in Master page.

In case of Body pages , this approach is working with out problem.

Can anybody give me a clue .

Thanking you,

Regards,

  Satya

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372

Avatar

_Bruce_Robertson

MVP

Total Posts

1.8K

Likes

268

Correct Answer

372
_Bruce_Robertson
MVP

15-08-2018

Hi Satya,

You will have to loop though all the instances of that master page, so something like;

var pages = form1.Page1.all;

for (var i = 0; i < pages.length; i++) {

form1.Page1.all.item(i).TextField1.access = "readOnly"

}

Regards

Bruce

Answers (0)