When we created the page, we disabled the save button. When all fields needed are populated with values, we can enable the save button so the user can save the document. We should also make sure that document opened for editing do get the save button activated on loading. This is how to do it.

//Check for changes on any fields to check if button can be activated
$('input').change(function(event) {
	var title = dataconnect.getfield('title').value;
	var slug =	dataconnect.getfield("slug").value;
if (title && slug)

Do the check when a field is changed

//Activate the button if title and slug have values
if (dataconnect.getfield('title').value && dataconnect.getfield('slug').value)

Check on page loaded