Have form become disabled after field field

  • AgilityAssoc.Canada
    Asked on October 23, 2017 at 6:16 PM

    Hi,

    On form 52745887899988 I have a date field called Post Approval. I would like to create a condition that the form becomes disabled once this field is filled so no more edits cane be made.

    Thank you, Robert

  • John_Benson
    Replied on October 23, 2017 at 10:10 PM

    Hello Robert,

    Do you mean the form will be disabled and cannot be submitted once the condition is met? 

    If yes, you can hide the Submit button and display a Text message that the form is now disabled. You can do that by following this guide: How-to-Show-or-Hide-Fields-Base-on-User-s-Answer

    If I misunderstood your issue, please let us know. Thank you.

  • AgilityAssoc.Canada
    Replied on October 24, 2017 at 12:54 PM

    Hi,

    What I mean is, once this date is entered and the form is submitted then it is disabled. I still need Responder and Notification messages for last submission of this form.

    Thank you, Robert

  • aubreybourke
    Replied on October 24, 2017 at 2:09 PM

    You have two options:

    1. In the form settings, specify a date for your form to expire

    1508868561Microsoft Edge 24 10 2017 19 0 Screenshot 10

    2. Use conditions to disable your form

    Conditionally Enable or Disable a Form Based on Time 

  • AgilityAssoc.Canada
    Replied on October 24, 2017 at 2:43 PM

    Hi, 

    I apologize, I did not explain my self very well. It is not the form per-say that I want to disable, it is the submission I want to disable so no further edits can be made to it after the Post Approval date is filled. In other words the "Edit Submission" option can no longer be used for a particular submission that has that date field filled.

    I hope I have clarified my requirement.

    Thank you, Robert

  • aubreybourke
    Replied on October 24, 2017 at 3:14 PM

    I have a working example of this here: https://form.jotform.com/72965751963976

    You can clone this form: 

    How to Clone an Existing Form from a URL 


    You need to use the "Get page from URL" widget. And create a condition that tests if the URL contains "edit" and also is past 2017-10-23 

  • AgilityAssoc.Canada
    Replied on October 25, 2017 at 10:54 AM

    Hi, 

    I was just looking at the conditions for your form. I'm trying to put the steps together for incorporating into mine. 

    1. I add GET FORM Page URL widget

    2. I add logic; If GET PAGE URL contains "edit" SHOW text

    Now I'm lost because I don't know where the "edit" comes from or am I looking to see if the field "Post-Approved Date" is filled and go from there?

    FYI. This submission may be edited three times,

    1. First submission, no "Approved Date" entered.

    2. Second time, "Approved Date" entered.

    3. Last submission "Post-Approved Date" entered and now it is closed for any further edits.  


    Thank you, Robert

  • BJoanna
    Replied on October 25, 2017 at 12:17 PM

    The condition my colleague set inside of his form will disable the form (hide all form fields) if entered date is after 2017-10-23 when using the edit form link. 

    However, I do not think that that is what you want to achieve. If I understood you correctly you want to disable editing of the form once the "Post-Approved Date" is entered (any date, not specific date like 2017-10-23). I am not sure if that is possible. The only way I can think of is to hide all other fields except "Post-Approved Date" field (maybe you can even hide this field) and submit button field when the "Post-Approved Date" field. The submit button must stay visible so that you can submit the date entered in "Post-Approved Date". After that, only the submit button will be visible on the form and you can resubmit it again with the edit link, but the data will remain the same because the field values were not edited. 

    So you can set the condition to hide all form fields, except the submit button,  when the "Post-Approved Date" field is filled. 

  • AgilityAssoc.Canada
    Replied on October 25, 2017 at 2:22 PM

    Hi, OK I understand....

    Condition is: IF "Post-Approved Date" is FILLED, HIDE ALL FIELDS except SUBMIT button and SHOW message "This Submission is Completed". Something along those lines. The only fault is having the submit button still active, It would be used to exit the form and send messages again... #not_good.  

    Still looking at Aubrey's option, Use the URL widget and IF "Post-Approved Date" is FILLED and then someone then returns, all fields including submit are not visible and there is the message  "This Submission is Completed". Is this possible? 

    Perhaps I don't understand exactly what the GET URL widget is doing.

    Thank you, Robert

  • BJoanna
    Replied on October 25, 2017 at 3:34 PM

    My colleague used the GET URL widget to get the edit value from the edit link.

    1508959724edit1 Screenshot 10

    This will not help in your case. The submit button has to stay active so that you can get the date from the "Post-Approved Date". field. 

    I'm afraid that there is no other solution or workaround to achieve that only a custom message is shown after 2nd edit without the submit button. 

  • AgilityAssoc.Canada
    Replied on October 25, 2017 at 9:16 PM

    OH DARN!  

    I will take your advice for the conditional logic. Many thanks.

    Thank you, Robert