I have been struggling with how to approach hiding editing fields within specific cells of every row in the table on the exit button click.
Dows the row have to be resolved? i any help is appreciated.
// Main.Links2.Tbl.Row1.Edit = this is the Hierachy
// Main.Links2.Tbl.Row1.DEdit= this is the Hierachy
form1.Main.b.Exit::click - (JavaScript, client)
{
// Edit Buttons sf (b)
form1.Main.b.NoteOpen.presence = "visible";
form1.Main.b.Exit.presence = "invisible";
// Protecting the field so it isn't included in tabbing.
form1.Main.Links2.Tbl.access = "protected";
}
//xfa.host.setFocus("form1.Main.Links.Tbl.Title.Cell1");
Views
Replies
Total Likes
Assuming all your rows are named 'Row1':
for (var i=0;i<form1.Main.Links2.Tbl.Row1.all.length;i++){
form1.Main.Links2.Tbl.Row1.all.item(i).Edit.presence="invisible";
form1.Main.Links2.Tbl.Row1.all.item(i).DEdit.presence="invisible";
}
Kyle
Views
Replies
Total Likes
thanks, but it still only hides the first row of invisible fields.
// I copied and pasted this into the button.
// its location on the Hierarchy = form1.Main.b.Exit
// Main.Links2.Tbl.Row1.Edit = this is the Hierachy
// Main.Links2.Tbl.Row1.DEdit= this is the Hierachy
for (var i=0;i<form1.Main.Links2.Tbl.Row1.all.length;i++)
{
form1.Main.Links2.Tbl.Row1.all.item(i).Edit.presence="invisible";
form1.Main.Links2.Tbl.Row1.all.item(i).DEdit.presence="invisible";
}
Views
Replies
Total Likes
Make sure your rows are named Row1 or Row1 is your repeatable row.
Kyle
Views
Replies
Total Likes