Hi
I have exactly the same question!!
How can I show the rows that had been added with the WrapperScriptAddDelete script.
When I want to edit datas in CB, it doesn't show them.
I tried to detect if fields are empty or not but the issue is that the javascript loads before values are displayed.
I'm very interested in the solution you found.
Best regard
Tom
In fact, I added this to the WrapperScriptAddDelete script:
I works well if you reload the edit page but it doesn't work if you come from the items list (fields are not filled yet)
var k=1;
for (k;k<=15;k++)
{
var id='#S'+k;
var setting = JQuery(id).css('display');
if (setting=='none')
{
var elem = JQuery("" + id + " input[type='text']");
var filled = elem.filter(function(){
return jQuery(this).val() != '';
});
if (filled.length === 0) {
alert(filled.length);
} else {
alert(filled.length);
JQuery(id).css('display', 'block');
}
}
};
Finally solved by adding setTimeout(function() to load it after data are processed.
Thx