Can someone save a partially completed form to submit later?

daveyk72
Kilo Contributor

Hi community,

I'm wondering if there is a way that someone can save a partially completed form and be able to submit at a later time?

It's not something we had developed during implementation a couple of months ago, so any assistance would be appreciated.

12 REPLIES 12

Hi david,



Thanks for the reply. After I submitted the question, I figured it out. I do have a follow up question. I created a UI action for a button Request Approval. My UI action sets the checkMandatory to true in a client script. If the mandatory fails, I would like to set the checkMandatory back to false so the user can decide just to save or update. Is is possible to know if the mandatory check failed?



Thanks


Jana


You could probably modify the Save/Update UI actions to be set checkMandatory false if the record meets your conditions.


syed_faheem
ServiceNow Employee
ServiceNow Employee

Hi David


Not sure you have found your answer, but i realized that g_form.checkMandatory = false does not seem to work in geneva so I have developed following function in client script.




function ignoreMandatoryCheck(){


      var i;


  var arrValues = g_form.getMissingFields().toString().split(',');


  // checking existance of value


  for (i=0;i<arrValues.length;i++){


  g_form.setMandatory(arrValues[i],false);


  }


}


syed_faheem
ServiceNow Employee
ServiceNow Employee

Hi David


Not sure you have found your answer, but i realized that g_form.checkMandatory = false does not seem to work in geneva so I have developed following function in client script.




function ignoreMandatoryCheck(){


      var i;


  var arrValues = g_form.getMissingFields().toString().split(',');


  // checking existance of value


  for (i=0;i<arrValues.length;i++){


  g_form.setMandatory(arrValues[i],false);


  }


}


Hi Syed,



The g_form.checkMandatory is also not working in Fuji.



The script in your post works to clear the mandatory attributes for the fields when David O'Brien's example State=Draft.


However, if the State is then changed to another State, the mandatory attributes are not restored since the getMissingFields() method will no longer return any fields since the mandatory attribute has already been cleared.



We are trying to achieve something similar and only want the mandatory fields to be enforced if the State is Closed Complete.