1
Automation Interface, Add-Ins and Tools / Hide header in custom fragment (bookmark?)
« on: April 16, 2019, 07:38:24 pm »
Hi!
I have a document fragment where the data is coming from a custom script (Document Options -> Custom Query -> Custom Script). This script returns, among other information, the constraints associated with an element. I want to, if there are no constraints associated with the element, to not show the header. This is how the fragment looks like:
custom>
Definition
{Definition}
Constraints <-- If there are no constraints, I don't want to show this text
{Constraints}
<custom
I cannot figure out how to do this using bookmarks (if it is even possible). The other option is to let the script return the header as well, but how do I format it? (I want it to be Calibri, bold and 9)
I have a document fragment where the data is coming from a custom script (Document Options -> Custom Query -> Custom Script). This script returns, among other information, the constraints associated with an element. I want to, if there are no constraints associated with the element, to not show the header. This is how the fragment looks like:
custom>
Definition
{Definition}
Constraints <-- If there are no constraints, I don't want to show this text
{Constraints}
<custom
I cannot figure out how to do this using bookmarks (if it is even possible). The other option is to let the script return the header as well, but how do I format it? (I want it to be Calibri, bold and 9)