I want to create a Quick save button

  • 1
  • Question
  • Updated 2 years ago
I want to create a quick save button, that will eliminate all the render conditions and validations

Is there any way to do this, like Javascript or VF button

Any suggestions??

Thanks in Advance.
Photo of Linga

Linga

  • 228 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Janick

Janick

  • 916 Points 500 badge 2x thumb
Linga,

You could create 2 table sets. One of them in "edit mode" by default and only rendered while editing. The other in "read only" mode, only rendered when everything is finished editing and saved.
To set it in edit mode, create a button "edit" which on click sets the new UI-only field, only stating "edit mode=true/false".

Then create a button "quicksave" that only "saves changes in model: YourModelName" and create another button "save" that "saves changes in model: YourModelName" and "YourModelName: Update field edit".

Janick
Photo of Shmuel Kamensky

Shmuel Kamensky, Champion

  • 4,328 Points 4k badge 2x thumb
Linga, what do you mean by render conditions and validations?

Do you mean you want to deactivate all page render conditions so everything on the page renders?
And by validations do you mean Salesforce validations?