How to make form_relate and/or link button invisible


I am trying to make the form_relate link and/or the link button invisible under certain conditions (PYSON) is this possible? is there an example somewhere?


No it is not possible. Keyword actions are global and per model or record.

OK I understand. In the form the link button is in a group, making the group invisible can solve my problem, is it possible?

On form view, buttons and links can have states to make them invisible (and button readonly).
You must use ModelView.view_attributes or ModelView._buttons.

IIUC ModelView.view_attributes is for links and ModelView._buttons for buttons.

Amb I right?