How to Display a button after clicking the save action button

  • 1
  • Question
  • Updated 3 years ago
  • Answered

I have Button on the page title component which performs Save action on a model. In the same page title component i want to show another button called Submit for approval. This button when clicked will fire an approval process.

My requirement here is, Unless i click the save button i should not see the submit for approval button.

Right now, i am seeing both the buttons sitting side by side while creating the record in a popup.

IS there anyway by which i can see only the save when i open the pop up and and see the submit for approval button only after the saving the popup.

I don't know much about JavaScript so i am wondering if we can do this via Action framework

Photo of Avinash


  • 1,726 Points 1k badge 2x thumb

Posted 3 years ago

  • 1
Photo of Skuidward Tentacles (Raymond)

Skuidward Tentacles (Raymond), Champion

  • 17,756 Points 10k badge 2x thumb
You would add a field to the model called "Saved". It would be a check box field. Then, instead of a save button, you would replace it with a multiple actions button. The button actions would be to save the model, then mark the "Saved" field true (Checked).
Then you can conditionally render the submit for approval button based on whether the Saved field is true.
Photo of Avinash


  • 1,726 Points 1k badge 2x thumb
Worked. Thanks Raymond.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,678 Points 20k badge 2x thumb
Raymond is the champ!  Thanks for your help here...