I am trying to add an Append option to the context menu utilizing an Edit Form Template pop-up. The Insert option was easy since you had many examples. I tried, client side, to change the command to InitInsert with a currentIndex of -1 to indicate an Append operation, see below. When it runs, I do not get the Edit Form Template pop-up. I am also trying to incorporate the same functionality into Insert and Append buttons, separate from the Tree List control.
function CM_onClientItemClicked(sender, args) {
var commandName = args.get_item().get_value();
if (commandName == 'Append')
_tlConfig.fireCommand('InitInsert', -1);
else
_tlConfig.fireCommand(commandName, currentIndex);
}