Identify if a form is in edit or in view

Hello everyone,
there is a way to show a button only if the form is in edit mode ?

I have a button like « copy from » and i want it shows up only if the user
clicked the pencil.

<button name="myButton" title="Copy form" showIf="!$readonly()" onClick="my-action" />
1 « J'aime »

I will try it immediately!

Ce sujet a été automatiquement fermé après 30 jours. Aucune réponse n’est permise dorénavant.