General X++ Development

How do I hide a form control in X++?

Asked by Sunny Vasty· Aug 13, 2026· 1 answers

How do I hide a form control in X++?

SSunny Vasty75 reputation · answered Aug 13, 2026

Set the control's visible property.

X++
YourControl.visible(false);

Use visible(false) when the user should not see the control at all. If they should see the value but not change it, use enabled(false) or datasource field edit permissions instead.