I'm struggling with my template parts.
It seems that every time I add my template part into a new form, it loses the schema context. Let me explain.
In my template part I have the following Schema:
In the conditional formatting of UG_Server, I have the following expression set to hide the text-box control:
my:UG_ServerName = preceding-sibling::my:UserGroup/my:UG_ServerName
This hides the text-box if the value is the same as the same text-box in the preceding record which results in a sort of outline-style table.
This works great in the template part. And it works great if I use the same expression in a form template. The problem is when I try to insert the template part into a new form template, the expression changes to:
my:UG_ServerName = my:UG_ServerName
This clearly, is always going to return as true. I've tried putting it into its own group. I've tried using sections. I can't figure for the life of me how to fix it.