I have a button use to save document. This button only visible in edit mode only. I have 4 option to save a document which awere "Save As Draft", "Save PC Inspection", "Save New Version", and "Save Write Off". Below is the figure:
For "Save As Draft", "Save PC Inspection", and "Save New Version", I'm using same document form while "Save Write Off" I'm using different document form with different view which is Draft, Write Off, and Computer.
My problem now is when I open in edit mode, the save button show all. What I'm try to achieve are:
- When I'm on Computer view and open document in edit mode, I only want to show "Save As Draft" and "Save New Version" only.
- When I'm on Draft view and open document in edit mode, I only want to show "Save As Draft" and "Save PC Inspection" only.
- Lastly, when I'm on Write Off view and open document in edit mode, I only want to show "Save Write Off" only
How can I show save button only when document open in edit mode for specific document view? Any advice or help I appreciate!