Change save cancel order

  • 1
  • Question
  • Updated 1 year ago
  • Answered
Is there an easy way to change the save cancel order for the default save/cancel buttons on tables/field editors/page titles etc?

On all our pages we would like to have Cancel first and Save next. I know this could be achieved through a button set, but there are many pages on which we might need to do this. I was wondering if I could do this at a theme level and then apply that theme to all my pages.

Thoughts?
Photo of Ashwat

Ashwat

  • 768 Points 500 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Matt Sones

Matt Sones, Champion

  • 31,478 Points 20k badge 2x thumb
If those are your only buttons, you can probably get away with something like this in CSS:
.nx-button-secondary.sk-button-cancel.ui-button.ui-widget.ui-state-default.ui-corner-all.ui-button-text-icon-primary.ui-button-disabled.ui-state-disabled {
 float: left;
}
Photo of Ashwat

Ashwat

  • 768 Points 500 badge 2x thumb
Thanks Matt! That worked beautifully.