- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Oh yea, my bad. You're right. I gave you the wrong JavaScript. You do need to pass in an instance index for removeInstance(). It'll look something like:
// Count the number of chapters (the repeatable subform)
var nChapters = ChapterContainer.Chapter.instanceManager.count()
// Remove the last instance in the list. Because indexes start at 0 it will be one less than the count.
ChapterContainer.Chapter.instanceManager.removeInstance(nChapters-1);
You may want to double check that. I typed it out in the forum and not in Designer, so it may not be 100% right. I think it is though. This should do it for you.
Ryan D. Lunka
Cardinal Solutions Group
rlunka@cardinalsolutions.com
Views
Replies
0 Likes
Total Likes