I'm working on a client side method to clone an ItemType using a dialog box. My approach is to make a form with a check box to choose to copy properties and another check box to copy values from a relationship tab, and a button for "Done" and "Cancel." Then opening that form inside a dialog box that's opened from a menu button. My problem is referencing the ItemType in the current tab from the dialog box.
I tried adding the item as an argument to the dialog using the 'item' tag, but using document.thisItem returns 'undefined' for me.