You are viewing limited content. For full access, please sign in.

Question

Question

Does "Save Incomplete Form" requires the submitter to be a named user?

asked on January 21, 2014

Hello Everyone,

 

I have a used case where the Proctor needs to fill out a form for the candidates appearing for the test. Proctor fills out a form and punch in the Time in for the candidate when test starts and save the incomplete copy. Once candidate has filled out the form, proctor will go back to the incomplete copy and update the time out and finally submit the form. Please let me know if anyone has any suggestions.

 

Also if I allow user to save an incomplete copy, does that require user to be a named LF user?

 

Thank you in advance!

 

Best,

Himanshu

 

0 0

Answers

APPROVED ANSWER
replied on January 21, 2014 Show version history

No, this option can be used with anonymous, public users. When selected, this allows the user to provide an email address and password so they can access the form again. A link to the form is sent to the specified email address.

 

As for specifying the date in/date out, you could simplify the proctor's life by creating some simple buttons that, when clicked, enter the current time in a field.

 

Create two single line fields, one for time in, one for time out. Add the timeIn class to the time in field, add the timeOut class to the time out field.

 

Here's the HTML you'll use in a Custom HTML field to create the buttons

 

<input class="inButton" value="Sign In" type="button"> 
<input class="outButton" value="Sign Out" type="button">

 

Here's the JavaScript.

 

$(document).ready(function () {
  $('.inButton, .outButton').click(timestamp);
 
  function timestamp() {
    
    var d = new Date();
    var minutes = d.getMinutes();
    
    if (minutes < 10) {var minutes = "0" + minutes;}
        
    if (d.getHours() < 12) { var a = "AM";}
    else {var a = "PM";}
      
    if ($(this).hasClass('inButton')) {
      $('.timeIn input').val(d.getHours() + ":" + minutes + a);
    }
    
    else {
    
    $('.timeOut input').val(d.getHours() + ":" + minutes + a)
    
    }
  }
});

Edit: Updated the JavaScript to account for leading zeros for minutes under 10.

1 0
replied on January 21, 2014

Eric, you are da man!

Thank you! Really appreciate it.yes

0 0
replied on January 21, 2014

You're welcome!

0 0
replied on January 21, 2014

Hey Eric,

 

Thank you for the script, it did work the way you said. I am now trying to play with it a little and trying to change the aesthetics of the button itself. I have designed my CSS class and I am willing to test it. Now since I have defined the class as inButton already thats running a jQuerry, where do you suggest I can insert my CSS class? or can I specify my CSS class with the HTML code itself? 

Thank you in advance!

 

Best,

Himanshu

0 0
SELECTED ANSWER
replied on January 22, 2014

You can add your CSS class where the other one is, just make sure there's a space between each class. Here's an example where I've added two classes to a field.

 

2 0
replied on January 22, 2014

Thanks Eric! Will try that out. 

0 0
SELECTED ANSWER
replied on January 22, 2014

You can add your CSS class where the other one is, just make sure there's a space between each class. Here's an example where I've added two classes to a field.

 

2 0

Replies

replied on June 23, 2015

I used this code to create a Time Stamp button.

How can I make this button required?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.