Question
How to hide Text Label in a Document Definition?
Answer
There is no way to hide text label in the Document Editor form in FlexiCapture 12.
In case if it is required to have a text label on form and show or hide the label based on some conditions, there is a workaround to use the field label at the form and control the visibility with a simple script.
1) Add the field to the Document Definition.
Note. It is recommended to make such field empty and non-editable with corresponding settings in the field Properties:
2) Move the field Caption on form to the desired location where it shall be used as a label.
Note: the field text field cannot be deleted so it is recommended to be placed on form at the location where it is less impacting.
3) Control the field visibility on Document Editor form with general approach, e.g. script referring to "IsVisible" IField property:
if (condition)
{
Context.Field("FieldToHide").IsVisible=false;
}
else
{
Context.Field("FieldToHide").IsVisible=true;
}
Comments
0 comments
Please sign in to leave a comment.