- This topic has 2 replies, 2 voices, and was last updated 3 years, 11 months ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
› Forums › Classic DFFS › dffs functions for hide save / cancel buttons?
Tagged: hide save button
Is there a function being used to hide the save / cancel buttons in the form and in the ribbon?
I currently use a DFFS rule for each, but am trying to do most in my custom JS based on other logic.
if (field = value){
hide save button
}
else (show save button)
Use this to toggle the save button:
// Hide spjs.dffs.toggleSaveBtnByRule(false); // Show spjs.dffs.toggleSaveBtnByRule(true);
Same approach for the spjs.dffs.toggleCancelBtnByRule function.
Alexander
Perfect, thank you.