dffs functions for hide save / cancel buttons?

Forums Dynamic Forms for SharePoint dffs functions for hide save / cancel buttons?

Viewing 2 reply threads
  • Author
    Posts
    • #29770
      Jon Whisman
      Participant

      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)

    • #29772
      Alexander Bautz
      Keymaster

      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

    • #29791
      Jon Whisman
      Participant

      Perfect, thank you.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.