
I'm trying to add compendium integration to a custom sheet, and while that part is fairly simple, my problem comes from clearing the fields For example, if I make a new spell slot, then I drag a spell onto, the fields that are applicable fill in like they should. Then if I drag a different spell onto that same spot the information that is different changes but if the first spell had a target field, but the second doesn't (like cone of cold, then alarm) it doesn't erase the fields that the new spell DOESN'T have. How do I make it do that?