Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By DiegoSandoval
#817427
Hi Team,

Sorry for disturbing you, but I need to save as draft a dynaform but I can't find an option in the documentation.

Could you please help me with some information to do it?

Best Regards
By skbecker
#817459
Hi Diego,

There's not really an option to save a Dynaform as a draft. Simply the save the Dynaform you have right now and don't assign it to any tasks. That way you have a "draft" of the Dynaform, but no one can access it. You can also save the Dynaform to your computer with the Export button as a JSON file. Hope that answers your question.
By MackieeE
#817460
Indeed - So a rough implementation of saving the form would be:
In your DynaForm, add a Button (not a submit)
Code: Select all
//Provide this with an id of saveFormAsDraft
<button>Save as Draft</button>

Then inside your Javascript of the Dynaform:
Code: Select all
var theDynaForm = getFormById( "[Replace with the Unique FormID]" );

/*
 * 
**/
$('#saveFormAsDraft').click(function(){ 
  if ( theDynaForm.saveForm() ){
      alert( "Saved Details" ); 
  }
});

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]