cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Can we require the user to view an attachment before submitting form?

Jump to solution

This was something we could do with Winshuttle.

Tags (1)
0 Kudos
Reply
13 Replies
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

Is there a hyperlink or something on the form? You could add a JS hyperlink button with onclick that opens up the link to the attachment and also onclick writes to a required field.

0 Kudos
Reply
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

I was curious so I went ahead and tried this out myself, works pretty well.

  1. Make a hidden field and give it a JS variable name of "AttachmentRead" 
  2. Create a validation rule that it cannot be empty, if empty "Please reach the attachment"
  3. Create a JS button hyperlink (or really any will work, depends how you want it to look)
    1. Give it a label of "Must Read this Attachment Before Submitting"
    2. Under advanced section, add the following JS to the Client Click Replace google with the link to your attachment
      NWF$(document).ready(function(){      AttachmentRead();  }); window.open("https://www.google.com");

  4. In the custom JS under form settings add this codeNintex Forms for Office 365
    function AttachmentRead () { 
      NWF$('#' + AttachmentRead).val("Read"); 
    }
0 Kudos
Reply
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

But can that be done in office 365?

Sent from my iPhone

0 Kudos
Reply
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

Hello,

You can always make it a task that the user has to complete, saying essentially "Yes I did review the document".    This would be part of a workflow following the submission of this form.

Thanks

Mike

0 Kudos
Reply
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

Yes. I just did it in O365

0 Kudos
Reply
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

Can the url be a variable?

0 Kudos
Reply
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

You could make a JS variable; but you'll have to know the exact URL for each variable. In the form settings custom JS section you can add references from the right, but you're limited to what Nintex has there.

0 Kudos
Reply
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

Hi Chadd,

For some reason this isn't working for me. When the user first clicks on the link it immediately has 'Please read the attachment' pop up, then when you click on the link a second time it then opens the attachment. The next issue is when trying to submit the form, even after viewing the attachment, it is still saying 'Please read the attachment' and not allowing the user to submit. I included images in hopes you can let me know what I did wrong. Thanks!

0 Kudos
Reply
Workflow Hero

Re: Can we require the user to view an attachment before submitting form?

Jump to solution

Hey Laura! Let me recreate it and take some screenshots for you. I'll try to get back to you as soon as I can!

0 Kudos
Reply