How do I trigger a top button change from detail to edit?

I created a field type that will allow me to put a "Clear" button next to a textarea on record and create views.

When used in record view I can set the model to "changed" thus warning you have unsaved changes if you try to move away, but I've not found a way to switch the menu to edited, i.e. show the Cancel and Save options. I don't want to automatically save the change, I want the user to click Save (or Cancel).

Can anyone give me a clue on how to trigger the dropdown menu change?

thanks,
FrancescaS

Parents Reply Children
No Data