cancel
Showing results for 
Search instead for 
Did you mean: 
DavidAD
Nintex Newbie

Why won't the Generate Document function read a hidden field?

Jump to solution

So I've got an NWC form that writes data to a PDF document using the Generate Document function. I have it close to working, but there's one problem. I have a hidden text field in my form whose value is determined by a visible Single Choice field. I'm using the value of the hidden field to write to the PDF document and to an email that is generated at the end of the workflow.

 

But it seems the Word document from which the PDF is generated isn't placing a value where I want it, even though there is a document tag in those locations. The areas are left blank. However, if I make the hidden field visible, everything works fine.

 

Does the Document Tagger not work with data in hidden fields? If not, why?

Labels: (2)
0 Kudos
Reply
4 Replies
leighburke
Nintex Employee
Nintex Employee

Re: Why won't the Generate Document function read a hidden field?

Jump to solution

@DavidAD Hidden fields don't return a value, if you log it to instance details you will get the same result. If you are looking to use a value that isn't shown on the form then I would suggest using a form variable instead.

View solution in original post

Reply
DavidAD
Nintex Newbie

Re: Why won't the Generate Document function read a hidden field?

Jump to solution

@leighburke Thank you. I'll work with that.

I guess I need to go back and look at the help documentation to review hidden fields, but if they don't return a value, I fail to see their purpose. Or is it the case that what's in a hidden field can only be used within the form, but not in the workflow?

0 Kudos
Reply
leighburke
Nintex Employee
Nintex Employee

Re: Why won't the Generate Document function read a hidden field?

Jump to solution

@DavidAD So when the form is submitted any fields that are hidden do not pass a value to the Workflow, so yes you could still use it in the Form.

Reply
DavidAD
Nintex Newbie

Re: Why won't the Generate Document function read a hidden field?

Jump to solution

@leighburke Thank you. Now I understand it.

0 Kudos
Reply