Hi
I have already configured email settings from Forms configuration section also enabled the save draft option for the form but I can't save a draft copy of the form. I put the email address and press save it just stays solid (does not lock up) and doesn't do any thing:
I created a new test form and enabled the save draft it worked fine.
The form with the problem is an active form that has been in production for last one year and I am just enabling Save Draft option.
I have a script under java section if I take it out, Save Draft works but when I load saved draft copy I don't see submit button any more, the code is: (There are two additional code statements that I will include at the end of this screen)
/* $(document).ready(function () {
$('form').submit(function (ev) {
if (($("#q215 input").val() = "") &&($('#q1 option:selected').val() == "Field Activity Submission"))
{
ev.preventDefault(); alert("Last Activity Has been Submitted. Please Check-In before submitting another Field Activity.");
}
else
$(this).unbind('submit');
});
});
$(document).ready(function () {
$('form').submit(function (ev) {
if (($("#q215 input").val() == "") && ($('#q1 option:selected').val() == "Check-In Submission"))
{
ev.preventDefault(); alert("Your last Check-In Submission is pending. Please Submit Activtiy to complete .");
}
else
$(this).unbind('submit');
});
}); */
What could be causing this? How can I fix this?
Appreciate the help.....
There are two additional script, I will paste them all below:
$(document).ready(function() {
//cache the elements we will use
var $submit = $('.Submit');
var $Field1 = $('#q1');
//hide the submit button
$submit.hide();
//bind event handler to the dropdown field
$Field1.change(function() {
//if the user selects what we want, show the submit button
if($Field1.find(':selected').val() === "Select an Activity...") {
$submit.hide();
}
//if not, hide it
else {
$submit.show();
}
});
});
$(document).ready(function () {
$('form').submit(function (ev) {
if (($("#q215 input").val() = "") &&($('#q1 option:selected').val() == "Field Activity Submission"))
{
ev.preventDefault(); alert("Last Activity Has been Submitted. Please Check-In before submitting another Field Activity.");
}
else
$(this).unbind('submit');
});
});
$(document).ready(function () {
$('form').submit(function (ev) {
if (($("#q215 input").val() == "") && ($('#q1 option:selected').val() == "Check-In Submission"))
{
ev.preventDefault(); alert("Your last Check-In Submission is pending. Please Submit Activtiy to complete .");
}
else
$(this).unbind('submit');
});
});
$(document).ready(function(){
function setcurrenttime (){
var currentdate=new Date();
var datetimenow=(currentdate.getHours())+ ":"
+ currentdate.getMinutes();
$('#Field280').val(datetimenow);
}
setcurrenttime();
});