Hide Sve Button

Forums Dynamic Forms for SharePoint Hide Sve Button

Viewing 1 reply thread
  • Author
    Posts
    • #6730
      Peter Zarro
      Participant

      Hi Alex,

      Is it possible to hide the save button unless something is added/changed in the form.

      My intent is to prevent people opening a form and not making any amendments to be able to save. Hence I want them to save only if they add or make a change to a column in the form.

      Thanks

      Peter

    • #6733
      Alexander Bautz
      Keymaster

      Hi,
      I cannot think of any other method than to set up a rule for a selection of fields that you want them to change, use the trigger “is changed from initial value” and call “showTheSaveBtn” in the “Run these functions.

      Then add this to the Custom JS:

      // Hide initially
      spjs.dffs.toggleSaveBtn(false);
      
      // This function triggers on a rule
      function showTheSaveBtn(){
      	spjs.dffs.toggleSaveBtn(true);
      }

      Alexander

Viewing 1 reply thread
  • You must be logged in to reply to this topic.